aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAbhi Beckert <abhi@abhibeckert.com>2017-08-04 17:11:09 +1000
committerGitHub <noreply@github.com>2017-08-04 17:11:09 +1000
commite59f679f6c6d86269e526ac3645ac27e2e9a1672 (patch)
tree1031978d47e598cf9015a4dfae29ebe1df0061cc
parentb9200621f0cef09a09deae6c237622c3fc009018 (diff)
parent08e3de52cf9679509338503c96b19f7db399115a (diff)
downloadsequelpro-e59f679f6c6d86269e526ac3645ac27e2e9a1672.tar.gz
sequelpro-e59f679f6c6d86269e526ac3645ac27e2e9a1672.tar.bz2
sequelpro-e59f679f6c6d86269e526ac3645ac27e2e9a1672.zip
Merge pull request #2847 from abhibeckert/master
#2753 make it more obvious that a colored tab is inactive
-rw-r--r--Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m5
1 files changed, 4 insertions, 1 deletions
diff --git a/Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m b/Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m
index 9fcdd61d..1098fbf9 100644
--- a/Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m
+++ b/Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m
@@ -630,6 +630,9 @@ typedef struct {
if([cell backgroundColor]) {
//should be a slightly darker variant of the color
fillColor = [[cell backgroundColor] shadowWithLevel:0.15];
+
+ // also desaturate the color
+ fillColor = [NSColor colorWithCalibratedHue:fillColor.hueComponent saturation:fillColor.saturationComponent * 0.4 brightness:fillColor.brightnessComponent alpha:1.0f];
}
}
} else {
@@ -651,7 +654,7 @@ typedef struct {
//make it dark first, then desaturate
if (cell.backgroundColor) {
NSColor *dark = [[cell backgroundColor] shadowWithLevel:0.15];
- fillColor = [NSColor colorWithCalibratedHue:dark.hueComponent saturation:dark.saturationComponent brightness:(dark.brightnessComponent * 1.28) alpha:1.0f];
+ fillColor = [NSColor colorWithCalibratedHue:dark.hueComponent saturation:dark.saturationComponent * 0.15 brightness:(dark.brightnessComponent * 1.28) alpha:1.0f];
}
}
}