Skip to content

Commit

Permalink
Set text display to left-aligned. Made number field shorter. Adjusted…
Browse files Browse the repository at this point in the history
… color of text and number fields.

The color of the text and number fields was set to match the outer bezel when its transparency slider is at the third line from the right.
  • Loading branch information
drdrang committed Jan 28, 2009
1 parent 79f3bb1 commit 3b308bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions BezelWindow.m
Expand Up @@ -35,16 +35,16 @@ - (id)initWithContentRect:(NSRect)contentRect
[[self contentView] addSubview:textField]; [[self contentView] addSubview:textField];
[textField setEditable:NO]; [textField setEditable:NO];
[textField setTextColor:[NSColor whiteColor]]; [textField setTextColor:[NSColor whiteColor]];
[textField setBackgroundColor:[NSColor colorWithCalibratedWhite:0.1 alpha:.45]]; [textField setBackgroundColor:[NSColor colorWithCalibratedWhite:0.33 alpha:.45]];
[textField setDrawsBackground:YES]; [textField setDrawsBackground:YES];
[textField setBordered:NO]; [textField setBordered:NO];
[textField setAlignment:NSCenterTextAlignment]; [textField setAlignment:NSLeftTextAlignment];
NSRect charFrame = NSMakeRect(([self frame].size.width - (2 * lineHeight)) / 2, 150, 1.75 * lineHeight, 1.75 * lineHeight); NSRect charFrame = NSMakeRect(([self frame].size.width - (2 * lineHeight)) / 2, 150, 1.75 * lineHeight, 1.25 * lineHeight);
charField = [[RoundRecTextField alloc] initWithFrame:charFrame]; charField = [[RoundRecTextField alloc] initWithFrame:charFrame];
[[self contentView] addSubview:charField]; [[self contentView] addSubview:charField];
[charField setEditable:NO]; [charField setEditable:NO];
[charField setTextColor:[NSColor whiteColor]]; [charField setTextColor:[NSColor whiteColor]];
[charField setBackgroundColor:[NSColor colorWithCalibratedWhite:0.1 alpha:.45]]; [charField setBackgroundColor:[NSColor colorWithCalibratedWhite:0.33 alpha:.45]];
[charField setDrawsBackground:YES]; [charField setDrawsBackground:YES];
[charField setBordered:NO]; [charField setBordered:NO];
[charField setAlignment:NSCenterTextAlignment]; [charField setAlignment:NSCenterTextAlignment];
Expand Down

0 comments on commit 3b308bc

Please sign in to comment.