Skip to content
Browse files

Set text display to left-aligned. Made number field shorter. Adjusted…

… 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...
1 parent 79f3bb1 commit 3b308bc555ccebb7deed56145b20158465b23115 @drdrang drdrang committed Jan 28, 2009
Showing with 4 additions and 4 deletions.
  1. +4 −4 BezelWindow.m
View
8 BezelWindow.m
@@ -35,16 +35,16 @@ - (id)initWithContentRect:(NSRect)contentRect
[[self contentView] addSubview:textField];
[textField setEditable:NO];
[textField setTextColor:[NSColor whiteColor]];
- [textField setBackgroundColor:[NSColor colorWithCalibratedWhite:0.1 alpha:.45]];
+ [textField setBackgroundColor:[NSColor colorWithCalibratedWhite:0.33 alpha:.45]];
[textField setDrawsBackground:YES];
[textField setBordered:NO];
- [textField setAlignment:NSCenterTextAlignment];
- NSRect charFrame = NSMakeRect(([self frame].size.width - (2 * lineHeight)) / 2, 150, 1.75 * lineHeight, 1.75 * lineHeight);
+ [textField setAlignment:NSLeftTextAlignment];
+ NSRect charFrame = NSMakeRect(([self frame].size.width - (2 * lineHeight)) / 2, 150, 1.75 * lineHeight, 1.25 * lineHeight);
charField = [[RoundRecTextField alloc] initWithFrame:charFrame];
[[self contentView] addSubview:charField];
[charField setEditable:NO];
[charField setTextColor:[NSColor whiteColor]];
- [charField setBackgroundColor:[NSColor colorWithCalibratedWhite:0.1 alpha:.45]];
+ [charField setBackgroundColor:[NSColor colorWithCalibratedWhite:0.33 alpha:.45]];
[charField setDrawsBackground:YES];
[charField setBordered:NO];
[charField setAlignment:NSCenterTextAlignment];

0 comments on commit 3b308bc

Please sign in to comment.
Something went wrong with that request. Please try again.