mirror of
https://github.com/zen-browser/desktop.git
synced 2026-03-29 03:41:51 +00:00
feat: Allow gradient picker to have less opacity for Windows, b=no-bug, c=workspaces
This commit is contained in:
@@ -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>
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user