mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
use a simpler method for determining text color of table cells on leopard
This commit is contained in:
@@ -250,22 +250,10 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
||||
if ([NSApp isOnLeopardOrBetter])
|
||||
[fWindow setContentBorderThickness: [[fTableView enclosingScrollView] frame].origin.y forEdge: NSMinYEdge];
|
||||
|
||||
if (![NSApp isOnLeopardOrBetter])
|
||||
{
|
||||
//set info and filter keyboard shortcuts
|
||||
/*[fNextInfoTabItem setKeyEquivalent: [NSString stringWithCharacters: & NSRightArrowFunctionKey length: 1]];
|
||||
[fPrevInfoTabItem setKeyEquivalent: [NSString stringWithCharacters: & NSLeftArrowFunctionKey length: 1]];
|
||||
|
||||
[fNextFilterItem setKeyEquivalent: [NSString stringWithCharacters: & NSRightArrowFunctionKey length: 1]];
|
||||
[fNextFilterItem setKeyEquivalentModifierMask: NSCommandKeyMask | NSAlternateKeyMask];
|
||||
[fPrevFilterItem setKeyEquivalent: [NSString stringWithCharacters: & NSLeftArrowFunctionKey length: 1]];
|
||||
[fPrevFilterItem setKeyEquivalentModifierMask: NSCommandKeyMask | NSAlternateKeyMask];*/
|
||||
}
|
||||
|
||||
if ([NSApp isOnLeopardOrBetter])
|
||||
[[fTotalTorrentsField cell] setBackgroundStyle: NSBackgroundStyleRaised];
|
||||
|
||||
//set up filter bar
|
||||
|
||||
if (![NSApp isOnLeopardOrBetter])
|
||||
{
|
||||
[fNoFilterButton sizeToFit];
|
||||
@@ -286,6 +274,7 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
||||
[fPauseFilterButton setFrame: pauseRect];
|
||||
}
|
||||
|
||||
//set up filter bar
|
||||
NSView * contentView = [fWindow contentView];
|
||||
NSSize windowSize = [contentView convertSize: [fWindow frame].size fromView: nil];
|
||||
[fFilterBar setHidden: YES];
|
||||
|
||||
Reference in New Issue
Block a user