Fixed anti-aliasing of checkboxes.
This commit is contained in:
1 parent
ea6b9b422d
commit
185325d68b
2 files changed
+20
-5
No files matched your search
@@ -59,7 +59,6 @@ static void *SBOptionsViewContex = &SBOptionsViewContex;
|
|||||||
- (instancetype)init {
|
- (instancetype)init {
|
||||||
self = [super initWithNibName:@"QueueOptions" bundle:nil];
|
self = [super initWithNibName:@"QueueOptions" bundle:nil];
|
||||||
if (self) {
|
if (self) {
|
||||||
|
|
||||||
}
|
}
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
@@ -67,6 +66,22 @@ static void *SBOptionsViewContex = &SBOptionsViewContex;
|
|||||||
- (void)loadView {
|
- (void)loadView {
|
||||||
[super 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
|
// Observe the providers changes
|
||||||
// to update the specific provider languages popup
|
// to update the specific provider languages popup
|
||||||
[self addObserver:self
|
[self addObserver:self
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="6250" systemVersion="14A389" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
|
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="6254" systemVersion="14C68k" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<deployment identifier="macosx"/>
|
<deployment identifier="macosx"/>
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="6250"/>
|
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="6254"/>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<objects>
|
<objects>
|
||||||
<customObject id="-2" userLabel="File's Owner" customClass="SBOptionsViewController">
|
<customObject id="-2" userLabel="File's Owner" customClass="SBOptionsViewController">
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
</customObject>
|
</customObject>
|
||||||
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
|
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
|
||||||
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
|
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
|
||||||
<customView appearanceType="aqua" id="UlG-O3-eNc" userLabel="OptionsView">
|
<customView id="UlG-O3-eNc" userLabel="OptionsView">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="334" height="281"/>
|
<rect key="frame" x="0.0" y="0.0" width="334" height="281"/>
|
||||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<button toolTip="Search metadata online" id="9GN-f6-r2j">
|
<button toolTip="Search metadata online" id="9GN-f6-r2j">
|
||||||
<rect key="frame" x="111" y="255" width="103" height="18"/>
|
<rect key="frame" x="111" y="255" width="112" height="18"/>
|
||||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||||
<buttonCell key="cell" type="check" title="Fetch Metadata" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="QNO-e1-WUJ">
|
<buttonCell key="cell" type="check" title="Fetch Metadata" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="QNO-e1-WUJ">
|
||||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||||
|
|||||||
Reference in new issue
Block a user