From 0d49daf36d297b78393edff6558f43522237ee81 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Sat, 18 Oct 2014 16:41:31 +0000 Subject: [PATCH] Yosemite: slight sseparation between pause/resume buttons in the toolbar --- macosx/Controller.m | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/macosx/Controller.m b/macosx/Controller.m index f7518596b..a4ace8927 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -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]; -- 2.40.0