Skip to content

Commit

Permalink
(minor) Tweaking the opacity.
Browse files Browse the repository at this point in the history
  • Loading branch information
ELLIOTTCABLE committed Jun 11, 2010
1 parent 4f093de commit 5564b5b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions YRSolcounter.m
Expand Up @@ -67,21 +67,24 @@ -(void) handleTimer: (NSTimer*)_ {
int length = [solCount length];
NSRange nanosolRange = NSMakeRange(length - (1 * 4), 4);
NSRange microsolRange = NSMakeRange(length - (2 * 4), 4);
NSRange millisolRange = NSMakeRange(length - (3 * 4), 4);
//NSRange millisolRange = NSMakeRange(length - (3 * 4), 4);
NSRange radixRange = NSMakeRange(length - (3 * 4) - 1, 1);
NSRange solRange = NSMakeRange(length - (4 * 4) - 1, 4);
NSRange kilosolRange = NSMakeRange(0, 3);

[attributedSolCount addAttribute: NSFontAttributeName value: radixFont range: radixRange];

[attributedSolCount addAttribute: NSForegroundColorAttributeName
value: [[NSColor blackColor] colorWithAlphaComponent:.3]
value: [[NSColor blackColor] colorWithAlphaComponent:.2]
range: nanosolRange];
[attributedSolCount addAttribute: NSForegroundColorAttributeName
value: [[NSColor blackColor] colorWithAlphaComponent:.3]
value: [[NSColor blackColor] colorWithAlphaComponent:.2]
range: microsolRange];
[attributedSolCount addAttribute: NSForegroundColorAttributeName
value: [[NSColor blackColor] colorWithAlphaComponent:.3]
value: [[NSColor blackColor] colorWithAlphaComponent:.2]
range: solRange];
[attributedSolCount addAttribute: NSForegroundColorAttributeName
value: [[NSColor blackColor] colorWithAlphaComponent:.2]
range: kilosolRange];

[textField setAttributedStringValue: attributedSolCount];
Expand Down

0 comments on commit 5564b5b

Please sign in to comment.