Remove 10.9 support.

This commit is contained in:
Damiano Galassi committed 2018-02-03 10:43:41 +01:00
1 parent 71c7308d6b
commit cd27e2ce52
18 files changed
+54 -118

No files matched your search

+7 -9
View File
@@ -66,16 +66,14 @@ static void *SBOptionsViewContex = &SBOptionsViewContex;
// 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;
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;
}
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;
}
}