File tree 1 file changed +4
-1
lines changed
Frameworks/PSMTabBar/Styles
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -630,6 +630,9 @@ - (NSColor *)fillColorForCell:(PSMTabBarCell *)cell
630
630
if ([cell backgroundColor ]) {
631
631
// should be a slightly darker variant of the color
632
632
fillColor = [[cell backgroundColor ] shadowWithLevel: 0.15 ];
633
+
634
+ // also desaturate the color
635
+ fillColor = [NSColor colorWithCalibratedHue: fillColor.hueComponent saturation: fillColor.saturationComponent * 0.4 brightness: fillColor.brightnessComponent alpha: 1 .0f ];
633
636
}
634
637
}
635
638
} else {
@@ -651,7 +654,7 @@ - (NSColor *)fillColorForCell:(PSMTabBarCell *)cell
651
654
// make it dark first, then desaturate
652
655
if (cell.backgroundColor ) {
653
656
NSColor *dark = [[cell backgroundColor ] shadowWithLevel: 0.15 ];
654
- fillColor = [NSColor colorWithCalibratedHue: dark.hueComponent saturation: dark.saturationComponent brightness: (dark.brightnessComponent * 1.28 ) alpha: 1 .0f ];
657
+ fillColor = [NSColor colorWithCalibratedHue: dark.hueComponent saturation: dark.saturationComponent * 0.15 brightness: (dark.brightnessComponent * 1.28 ) alpha: 1 .0f ];
655
658
}
656
659
}
657
660
}
You can’t perform that action at this time.
0 commit comments