feat: Added dark mode bias and better font sizes, b=no-bug, c=common, tabs, workspaces

This commit is contained in:
Mr. M
2025-07-17 17:58:30 +02:00
parent 66fcc9e1e2
commit 3f4595f86e
6 changed files with 21 additions and 13 deletions

View File

@@ -125,6 +125,8 @@
2,
darkModeChange
);
XPCOMUtils.defineLazyPreferenceGetter(this, 'darkModeBias', 'zen.theme.dark-mode-bias', 0.25);
}
handleDarkModeChange(event) {
@@ -1209,7 +1211,7 @@
let lightText = this.getToolbarColor(false); // e.g. [r, g, b, a]
if (this.canBeTransparent) {
lightText[3] -= 0.25; // Reduce alpha for light text
lightText[3] -= this.darkModeBias; // Reduce alpha for light text
}
// Composite text color over background
@@ -1490,7 +1492,7 @@
const rgb = this.hexToRgb(accentColor);
if (this.isDarkMode) {
// If the theme is dark, we want to use a lighter color
return this.blendColors(rgb, [0, 0, 0], 30);
return this.blendColors(rgb, [0, 0, 0], 60);
}
return rgb;
}

View File

@@ -308,6 +308,11 @@ zen-workspace {
}
}
.workspace-arrowscrollbox {
font-size: 14px;
font-weight: 500;
}
/** Customiable UI, this is an auto generated ID */
#wrapper-zen-workspaces-button {
width: 100%;