From 94a36fac361573fc00a0931609dd72df50a0d2dd Mon Sep 17 00:00:00 2001 From: Michael Starke Date: Fri, 12 Oct 2018 10:17:32 +0200 Subject: [PATCH] Selected cell in plugin settings now uses more approriate text color on extra text when selected --- MacPass/MPPluginTabelCellView.m | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/MacPass/MPPluginTabelCellView.m b/MacPass/MPPluginTabelCellView.m index e0e4e000..1f1f53c6 100644 --- a/MacPass/MPPluginTabelCellView.m +++ b/MacPass/MPPluginTabelCellView.m @@ -26,7 +26,16 @@ - (void)setBackgroundStyle:(NSBackgroundStyle)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