Selected cell in plugin settings now uses more approriate text color on extra text when selected

This commit is contained in:
Michael Starke
2018-10-12 10:17:32 +02:00
parent 350d84f6e3
commit 94a36fac36

View File

@@ -26,7 +26,16 @@
- (void)setBackgroundStyle:(NSBackgroundStyle)backgroundStyle { - (void)setBackgroundStyle:(NSBackgroundStyle)backgroundStyle {
super.backgroundStyle = backgroundStyle; super.backgroundStyle = backgroundStyle;
self.addionalTextField.cell.backgroundStyle = backgroundStyle; switch(backgroundStyle) {
case NSBackgroundStyleNormal:
case NSBackgroundStyleLowered:
self.addionalTextField.textColor = NSColor.disabledControlTextColor;
break;
case NSBackgroundStyleRaised:
case NSBackgroundStyleEmphasized:
self.addionalTextField.textColor = NSColor.selectedControlTextColor;
break;
}
} }
@end @end