feat: Make the sidebar darker when no color is selected, b=no-bug, c=workspaces

This commit is contained in:
mr. m
2025-07-12 20:54:00 +02:00
parent 0fe812f218
commit 0c99d9b5ef
2 changed files with 8 additions and 4 deletions

View File

@@ -102,9 +102,9 @@
</box>
<html:input type="range" max="0.9" value="0.4" step="0.001" id="PanelUI-zen-gradient-generator-opacity"
#ifdef XP_MACOSX
min="0.3"
min="0.25"
#else
min="0.35"
min="0.3"
#endif
/>
</vbox>

View File

@@ -41,7 +41,7 @@
}
const MAX_OPACITY = 0.9;
const MIN_OPACITY = AppConstants.platform === 'macosx' ? 0.3 : 0.35;
const MIN_OPACITY = AppConstants.platform === 'macosx' ? 0.25 : 0.3;
const EXPLICIT_LIGHTNESS_TYPE = 'explicit-lightness';
@@ -1107,7 +1107,11 @@
const rotation = -45; // TODO: Detect rotation based on the accent color
if (themedColors.length === 0) {
return forToolbar ? this.getToolbarModifiedBase() : 'transparent';
return forToolbar
? this.getToolbarModifiedBase()
: this.isDarkMode
? 'rgba(0, 0, 0, 0.6)'
: 'transparent';
} else if (themedColors.length === 1) {
return this.getSingleRGBColor(themedColors[0], forToolbar);
} else {