Search
lxdream.org :: lxdream :: r705:03dd1ea35c69
lxdream 0.9.1
released Jun 29
Download Now
changeset705:03dd1ea35c69
parent704:2c1d6f8e69e7
child706:3135a0770e19
authornkeynes
dateWed Jun 25 00:39:02 2008 +0000 (11 years ago)
Tweak Cocoa status bar appearance. Looks about right now
src/cocoaui/cocoa_win.c
1.1 --- a/src/cocoaui/cocoa_win.c Mon Jun 23 05:03:29 2008 +0000
1.2 +++ b/src/cocoaui/cocoa_win.c Wed Jun 25 00:39:02 2008 +0000
1.3 @@ -20,7 +20,8 @@
1.4 #include "lxdream.h"
1.5 #include <ApplicationServices/ApplicationServices.h>
1.6
1.7 -#define STATUSBAR_HEIGHT 20
1.8 +#define STATUSBAR_HEIGHT 25
1.9 +#define STATUS_TEXT_HEIGHT 22
1.10
1.11 @interface LxdreamToolbarDelegate : NSObject {
1.12 NSArray *identifiers;
1.13 @@ -107,7 +108,7 @@
1.14 if( [super initWithContentRect: contentRect
1.15 styleMask: ( NSTitledWindowMask | NSClosableWindowMask |
1.16 NSMiniaturizableWindowMask | NSResizableWindowMask |
1.17 - NSTexturedBackgroundWindowMask | NSUnifiedTitleAndToolbarWindowMask )
1.18 + NSUnifiedTitleAndToolbarWindowMask )
1.19 backing: NSBackingStoreBuffered defer: NO ] == nil ) {
1.20 return nil;
1.21 } else {
1.22 @@ -116,7 +117,7 @@
1.23 [video setFrameOrigin: NSMakePoint(0.0,STATUSBAR_HEIGHT)];
1.24
1.25 status =
1.26 - [[NSTextField alloc] initWithFrame: NSMakeRect(0.0,0.0,videoRect.size.width,STATUSBAR_HEIGHT)];
1.27 + [[NSTextField alloc] initWithFrame: NSMakeRect(0.0,0.0,videoRect.size.width,STATUS_TEXT_HEIGHT)];
1.28 [status setStringValue: @"Idle"];
1.29 [status setEditable: NO];
1.30 [status setDrawsBackground: NO];
1.31 @@ -125,8 +126,8 @@
1.32 [[self contentView] addSubview: status];
1.33 [self makeFirstResponder: video];
1.34
1.35 - [self setAutorecalculatesContentBorderThickness: YES forEdge: NSMinYEdge ];
1.36 - [self setContentBorderThickness: 15.0 forEdge: NSMinYEdge];
1.37 + [self setAutorecalculatesContentBorderThickness: NO forEdge: NSMinYEdge ];
1.38 + [self setContentBorderThickness: STATUSBAR_HEIGHT forEdge: NSMinYEdge];
1.39
1.40 // Share the app delegate for the purposes of keeping it in one place
1.41 [self setDelegate: [NSApp delegate]];
.