feat: Tweak colors to blend for windows/mica, b=no-bug, c=workspaces

This commit is contained in:
mr. m
2025-07-13 23:28:42 +02:00
parent f456994b61
commit ff0a25b704
2 changed files with 4 additions and 4 deletions

View File

@@ -104,7 +104,7 @@
#ifdef XP_MACOSX
min="0.25"
#else
min="0.3"
min="0.35"
#endif
/>
</vbox>

View File

@@ -41,7 +41,7 @@
}
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';
@@ -1052,7 +1052,7 @@
let colorToBlendOpacity;
if (this.isMica) {
colorToBlend = !this.isDarkMode ? [0, 0, 0] : [255, 255, 255];
colorToBlendOpacity = !this.isDarkMode ? 0.2 : 0.3;
colorToBlendOpacity = 0.35;
} else if (AppConstants.platform === 'macosx') {
colorToBlend = [255, 255, 255];
colorToBlendOpacity = 0.3;
@@ -1127,7 +1127,7 @@
return forToolbar
? this.getToolbarModifiedBase()
: this.isDarkMode
? 'rgba(0, 0, 0, 0.25)'
? 'rgba(0, 0, 0, 0.4)'
: 'transparent';
} else if (themedColors.length === 1) {
return this.getSingleRGBColor(themedColors[0], forToolbar);