1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-27 01:57:52 +00:00

never dim the buttons on hover on Tiger

This commit is contained in:
Mitchell Livingston 2008-01-15 23:57:46 +00:00
parent d144c11997
commit d540cadbd0

View file

@ -392,7 +392,7 @@
[revealInfo release]; [revealInfo release];
[area release]; [area release];
//action button (needed even in minimal mode to display status string //action button (needed even in minimal mode to display status string)
NSRect actionButtonRect = [self actionButtonRectForBounds: cellFrame]; NSRect actionButtonRect = [self actionButtonRectForBounds: cellFrame];
NSTrackingAreaOptions actionOptions = options; NSTrackingAreaOptions actionOptions = options;
if (NSMouseInRect(mouseLocation, actionButtonRect, [controlView isFlipped])) if (NSMouseInRect(mouseLocation, actionButtonRect, [controlView isFlipped]))
@ -411,17 +411,17 @@
- (void) setControlHover: (BOOL) hover - (void) setControlHover: (BOOL) hover
{ {
fHoverControl = [NSApp isOnLeopardOrBetter] ? hover : -1; fHoverControl = [NSApp isOnLeopardOrBetter] ? hover : NO;
} }
- (void) setRevealHover: (BOOL) hover - (void) setRevealHover: (BOOL) hover
{ {
fHoverReveal = [NSApp isOnLeopardOrBetter] ? hover : -1; fHoverReveal = [NSApp isOnLeopardOrBetter] ? hover : NO;
} }
- (void) setActionHover: (BOOL) hover - (void) setActionHover: (BOOL) hover
{ {
fHoverAction = [NSApp isOnLeopardOrBetter] ? hover : -1; fHoverAction = [NSApp isOnLeopardOrBetter] ? hover : NO;
} }
- (void) drawWithFrame: (NSRect) cellFrame inView: (NSView *) controlView - (void) drawWithFrame: (NSRect) cellFrame inView: (NSView *) controlView