diff --git a/Classes/SBOptionsViewController.m b/Classes/SBOptionsViewController.m index d263977..cd909c9 100644 --- a/Classes/SBOptionsViewController.m +++ b/Classes/SBOptionsViewController.m @@ -59,7 +59,6 @@ static void *SBOptionsViewContex = &SBOptionsViewContex; - (instancetype)init { self = [super initWithNibName:@"QueueOptions" bundle:nil]; if (self) { - } return self; } @@ -67,6 +66,22 @@ static void *SBOptionsViewContex = &SBOptionsViewContex; - (void)loadView { [super loadView]; + // Hack to fix crappy anti-aliasing on Yosemite + // unfortunately it fixes the checkboxes anti-aliasing, + // but break the popup buttons one… + if (NSClassFromString(@"NSVisualEffectView")) { + self.view.wantsLayer = YES; + + for (NSButton *subview in self.view.subviews) { + if ([subview isKindOfClass:[NSButton class]]) { + NSAttributedString *string = [[NSAttributedString alloc] initWithString:subview.title + attributes:@{NSForegroundColorAttributeName:[NSColor labelColor], + NSFontAttributeName:[NSFont labelFontOfSize:11]}]; + subview.attributedTitle = string; + } + } + } + // Observe the providers changes // to update the specific provider languages popup [self addObserver:self diff --git a/English.lproj/QueueOptions.xib b/English.lproj/QueueOptions.xib index c545f10..c8793ee 100644 --- a/English.lproj/QueueOptions.xib +++ b/English.lproj/QueueOptions.xib @@ -1,8 +1,8 @@ - + - + @@ -13,7 +13,7 @@ - + @@ -33,7 +33,7 @@