mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-13 22:52:26 +00:00
Selected cell in plugin settings now uses more approriate text color on extra text when selected
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user