diff options
author | Abhi Beckert <abhi@abhibeckert.com> | 2017-08-04 17:11:09 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-04 17:11:09 +1000 |
commit | e59f679f6c6d86269e526ac3645ac27e2e9a1672 (patch) | |
tree | 1031978d47e598cf9015a4dfae29ebe1df0061cc | |
parent | b9200621f0cef09a09deae6c237622c3fc009018 (diff) | |
parent | 08e3de52cf9679509338503c96b19f7db399115a (diff) | |
download | sequelpro-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.m | 5 |
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]; } } } |