Skip to content

Commit ff0a25b

Browse files
committed
feat: Tweak colors to blend for windows/mica, b=no-bug, c=workspaces
1 parent f456994 commit ff0a25b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/browser/base/content/zen-panels/gradient-generator.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
#ifdef XP_MACOSX
105105
min="0.25"
106106
#else
107-
min="0.3"
107+
min="0.35"
108108
#endif
109109
/>
110110
</vbox>

src/zen/workspaces/ZenGradientGenerator.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
}
4242

4343
const MAX_OPACITY = 0.9;
44-
const MIN_OPACITY = AppConstants.platform === 'macosx' ? 0.25 : 0.3;
44+
const MIN_OPACITY = AppConstants.platform === 'macosx' ? 0.25 : 0.35;
4545

4646
const EXPLICIT_LIGHTNESS_TYPE = 'explicit-lightness';
4747

@@ -1052,7 +1052,7 @@
10521052
let colorToBlendOpacity;
10531053
if (this.isMica) {
10541054
colorToBlend = !this.isDarkMode ? [0, 0, 0] : [255, 255, 255];
1055-
colorToBlendOpacity = !this.isDarkMode ? 0.2 : 0.3;
1055+
colorToBlendOpacity = 0.35;
10561056
} else if (AppConstants.platform === 'macosx') {
10571057
colorToBlend = [255, 255, 255];
10581058
colorToBlendOpacity = 0.3;
@@ -1127,7 +1127,7 @@
11271127
return forToolbar
11281128
? this.getToolbarModifiedBase()
11291129
: this.isDarkMode
1130-
? 'rgba(0, 0, 0, 0.25)'
1130+
? 'rgba(0, 0, 0, 0.4)'
11311131
: 'transparent';
11321132
} else if (themedColors.length === 1) {
11331133
return this.getSingleRGBColor(themedColors[0], forToolbar);

0 commit comments

Comments
 (0)