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

@@ -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 {