mirror of
https://github.com/transmission/transmission
synced 2025-02-03 04:53:27 +00:00
Better way to determine highlighted color
This commit is contained in:
parent
7c4bde6f8a
commit
b81f910a72
2 changed files with 3 additions and 2 deletions
|
@ -282,7 +282,8 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
|
|||
|
||||
- (void) drawWithFrame: (NSRect) cellFrame inView: (NSView *) view
|
||||
{
|
||||
BOOL highlighted = [self isHighlighted] && [[view window] isKeyWindow];
|
||||
BOOL highlighted = [self isHighlighted] && [[self highlightColorWithFrame: cellFrame inView: view]
|
||||
isEqual: [NSColor alternateSelectedControlColor]];
|
||||
NSDictionary * nameAttributes = [[NSDictionary alloc] initWithObjectsAndKeys:
|
||||
highlighted ? [NSColor whiteColor] : [NSColor blackColor],
|
||||
NSForegroundColorAttributeName,
|
||||
|
|
Loading…
Reference in a new issue