feat: Allow gradient picker to have less opacity for Windows, b=no-bug, c=workspaces

This commit is contained in:
mr. m
2026-03-12 12:47:20 +01:00
parent 6f9aa2472b
commit 908b164996
4 changed files with 9 additions and 9 deletions

View File

@@ -89,7 +89,7 @@
# They must all go from the middle to the right side. They must always stay verically centered.
# And reach to 180 on the right side, meaning we must divide the width in 16 segments.
<box data-type="explicit-black-white" data-algo="float" data-num-dots="1"
data-position="337.5,180" style="background: rgb(224, 224, 224);"></box>
data-position="340,180" style="background: rgb(224, 224, 224);"></box>
<box data-type="explicit-black-white" data-algo="float" data-num-dots="1"
data-position="337.5,180" style="background: rgb(224, 224, 224);"></box>
<box data-type="explicit-black-white" data-algo="float" data-num-dots="1"
@@ -131,11 +131,11 @@
</box>
<html:input type="range" value="0.4" step="0.001" id="PanelUI-zen-gradient-generator-opacity"
#ifdef XP_MACOSX
max="0.75"
min="0.35"
max="0.9"
min="0.30"
#else
max="0.9"
min="0.35"
min="0.25"
#endif
/>
</vbox>

View File

@@ -2,7 +2,7 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#include zen-panels/gradient-generator.inc
#include zen-panels/theme-picker.inc
#include zen-panels/emojis-picker.inc
#include zen-panels/folders-search.inc
#include zen-panels/site-data.inc

View File

@@ -1257,8 +1257,8 @@ export class nsZenThemePicker extends nsZenMultiWindowFeature {
let colorToBlend;
let colorToBlendOpacity;
if (this.isMica) {
colorToBlend = !this.isDarkMode ? [0, 0, 0] : [255, 255, 255];
colorToBlendOpacity = 0.35;
colorToBlend = this.isDarkMode ? [0, 0, 0] : [255, 255, 255];
colorToBlendOpacity = 0.25;
} else if (AppConstants.platform === "macosx") {
colorToBlend = [255, 255, 255];
colorToBlendOpacity = 0.35;
@@ -1271,7 +1271,7 @@ export class nsZenThemePicker extends nsZenMultiWindowFeature {
colorToBlendOpacity * (1 - (opacity + lazy.MIN_OPACITY))
);
baseColor = this.blendColors(baseColor, colorToBlend, blendedAlpha * 100);
if (AppConstants.platform !== "macosx") {
if (!this.canBeTransparent) {
opacity += colorToBlendOpacity * (1 - opacity);
}
}

View File

@@ -274,7 +274,7 @@
&:first-of-type {
width: 38px;
height: 38px;
border-width: 4px;
border-width: 6px;
pointer-events: all;
transition: transform 0.2s;
z-index: 999;