mirror of
https://github.com/transmission/transmission
synced 2025-02-22 14:10:34 +00:00
Yosemite: slight sseparation between pause/resume buttons in the toolbar
This commit is contained in:
parent
2187da2351
commit
0d49daf36d
1 changed files with 10 additions and 0 deletions
|
@ -2117,6 +2117,8 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
|||
[notification setHasActionButton: YES];
|
||||
[notification setActionButtonTitle: NSLocalizedString(@"Show", "notification button")];
|
||||
|
||||
notification.additionalActions = @[ [NSUserNotificationAction actionWithIdentifier:@"a" title:@"a"], [NSUserNotificationAction actionWithIdentifier:@"b" title:@"b"] ];
|
||||
|
||||
NSMutableDictionary * userInfo = [NSMutableDictionary dictionaryWithObject: [torrent hashString] forKey: @"Hash"];
|
||||
if (location)
|
||||
[userInfo setObject: location forKey: @"Location"];
|
||||
|
@ -3953,6 +3955,10 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
|||
[groupItem setView: segmentedControl];
|
||||
NSSegmentedCell * segmentedCell = (NSSegmentedCell *)[segmentedControl cell];
|
||||
|
||||
if ([NSApp isOnYosemiteOrBetter]) {
|
||||
segmentedControl.segmentStyle = NSSegmentStyleSeparated;
|
||||
}
|
||||
|
||||
[segmentedControl setSegmentCount: 2];
|
||||
[segmentedCell setTrackingMode: NSSegmentSwitchTrackingMomentary];
|
||||
|
||||
|
@ -3995,6 +4001,10 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
|||
[groupItem setView: segmentedControl];
|
||||
NSSegmentedCell * segmentedCell = (NSSegmentedCell *)[segmentedControl cell];
|
||||
|
||||
if ([NSApp isOnYosemiteOrBetter]) {
|
||||
segmentedControl.segmentStyle = NSSegmentStyleSeparated;
|
||||
}
|
||||
|
||||
[segmentedControl setSegmentCount: 2];
|
||||
[segmentedCell setTrackingMode: NSSegmentSwitchTrackingMomentary];
|
||||
|
||||
|
|
Loading…
Reference in a new issue