Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit 3b308bc555ccebb7deed56145b20158465b23115 1 parent 79f3bb1
Dr. Drang drdrang authored

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. +4 4 BezelWindow.m
8 BezelWindow.m
@@ -35,16 +35,16 @@ - (id)initWithContentRect:(NSRect)contentRect
35 35 [[self contentView] addSubview:textField];
36 36 [textField setEditable:NO];
37 37 [textField setTextColor:[NSColor whiteColor]];
38   - [textField setBackgroundColor:[NSColor colorWithCalibratedWhite:0.1 alpha:.45]];
  38 + [textField setBackgroundColor:[NSColor colorWithCalibratedWhite:0.33 alpha:.45]];
39 39 [textField setDrawsBackground:YES];
40 40 [textField setBordered:NO];
41   - [textField setAlignment:NSCenterTextAlignment];
42   - NSRect charFrame = NSMakeRect(([self frame].size.width - (2 * lineHeight)) / 2, 150, 1.75 * lineHeight, 1.75 * lineHeight);
  41 + [textField setAlignment:NSLeftTextAlignment];
  42 + NSRect charFrame = NSMakeRect(([self frame].size.width - (2 * lineHeight)) / 2, 150, 1.75 * lineHeight, 1.25 * lineHeight);
43 43 charField = [[RoundRecTextField alloc] initWithFrame:charFrame];
44 44 [[self contentView] addSubview:charField];
45 45 [charField setEditable:NO];
46 46 [charField setTextColor:[NSColor whiteColor]];
47   - [charField setBackgroundColor:[NSColor colorWithCalibratedWhite:0.1 alpha:.45]];
  47 + [charField setBackgroundColor:[NSColor colorWithCalibratedWhite:0.33 alpha:.45]];
48 48 [charField setDrawsBackground:YES];
49 49 [charField setBordered:NO];
50 50 [charField setAlignment:NSCenterTextAlignment];

0 comments on commit 3b308bc

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