mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-14 05:46:26 +00:00
feat: Make the sidebar darker when no color is selected, b=no-bug, c=workspaces
This commit is contained in:
@@ -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>
|
||||
|
@@ -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 {
|
||||
|
Reference in New Issue
Block a user