mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-14 13:56:11 +00:00
feat: Tweak colors to blend for windows/mica, b=no-bug, c=workspaces
This commit is contained in:
@@ -104,7 +104,7 @@
|
|||||||
#ifdef XP_MACOSX
|
#ifdef XP_MACOSX
|
||||||
min="0.25"
|
min="0.25"
|
||||||
#else
|
#else
|
||||||
min="0.3"
|
min="0.35"
|
||||||
#endif
|
#endif
|
||||||
/>
|
/>
|
||||||
</vbox>
|
</vbox>
|
||||||
|
@@ -41,7 +41,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
const MAX_OPACITY = 0.9;
|
const MAX_OPACITY = 0.9;
|
||||||
const MIN_OPACITY = AppConstants.platform === 'macosx' ? 0.25 : 0.3;
|
const MIN_OPACITY = AppConstants.platform === 'macosx' ? 0.25 : 0.35;
|
||||||
|
|
||||||
const EXPLICIT_LIGHTNESS_TYPE = 'explicit-lightness';
|
const EXPLICIT_LIGHTNESS_TYPE = 'explicit-lightness';
|
||||||
|
|
||||||
@@ -1052,7 +1052,7 @@
|
|||||||
let colorToBlendOpacity;
|
let colorToBlendOpacity;
|
||||||
if (this.isMica) {
|
if (this.isMica) {
|
||||||
colorToBlend = !this.isDarkMode ? [0, 0, 0] : [255, 255, 255];
|
colorToBlend = !this.isDarkMode ? [0, 0, 0] : [255, 255, 255];
|
||||||
colorToBlendOpacity = !this.isDarkMode ? 0.2 : 0.3;
|
colorToBlendOpacity = 0.35;
|
||||||
} else if (AppConstants.platform === 'macosx') {
|
} else if (AppConstants.platform === 'macosx') {
|
||||||
colorToBlend = [255, 255, 255];
|
colorToBlend = [255, 255, 255];
|
||||||
colorToBlendOpacity = 0.3;
|
colorToBlendOpacity = 0.3;
|
||||||
@@ -1127,7 +1127,7 @@
|
|||||||
return forToolbar
|
return forToolbar
|
||||||
? this.getToolbarModifiedBase()
|
? this.getToolbarModifiedBase()
|
||||||
: this.isDarkMode
|
: this.isDarkMode
|
||||||
? 'rgba(0, 0, 0, 0.25)'
|
? 'rgba(0, 0, 0, 0.4)'
|
||||||
: 'transparent';
|
: 'transparent';
|
||||||
} else if (themedColors.length === 1) {
|
} else if (themedColors.length === 1) {
|
||||||
return this.getSingleRGBColor(themedColors[0], forToolbar);
|
return this.getSingleRGBColor(themedColors[0], forToolbar);
|
||||||
|
Reference in New Issue
Block a user