mirror of
https://github.com/zen-browser/desktop.git
synced 2026-08-13 02:05:18 +00:00
no-bug: Small details
This commit is contained in:
@@ -308,6 +308,10 @@ export class nsZenBoostEditor {
|
||||
fontButton.addEventListener("click", this.onFontButtonClick.bind(this));
|
||||
|
||||
fontButtonGroup.appendChild(fontButton);
|
||||
|
||||
if (i === 0) {
|
||||
fontButtonGroup.appendChild(this.doc.createElement("br"));
|
||||
}
|
||||
}
|
||||
|
||||
// Add default value
|
||||
@@ -427,6 +431,7 @@ export class nsZenBoostEditor {
|
||||
const actor =
|
||||
linkedBrowser.browsingContext.currentWindowGlobal.getActor("ZenBoosts");
|
||||
actor.sendQuery("ZenBoost:TogglePickerMode");
|
||||
this.openerWindow.focus();
|
||||
}
|
||||
|
||||
onPickerPickedCallback(cssSelector) {
|
||||
|
||||
@@ -363,7 +363,7 @@ export class ZenBoostsChild extends JSWindowActorChild {
|
||||
primaryGradientColor = this.#hslToRgb(
|
||||
primaryGradientColor[0] / 360,
|
||||
primaryGradientColor[1] * (1 - boostData.saturation),
|
||||
0.1 + primaryGradientColor[2] * 0.6 * boostData.brightness
|
||||
0.1 + primaryGradientColor[2] * 0.9 * boostData.brightness
|
||||
);
|
||||
|
||||
const rgbColor = primaryGradientColor;
|
||||
@@ -377,8 +377,8 @@ export class ZenBoostsChild extends JSWindowActorChild {
|
||||
boostData.dotAngleDeg / 360,
|
||||
/* already is [0, 1] */
|
||||
boostData.dotDistance * (1 - boostData.saturation),
|
||||
/* lightness range from [0.1, 0.7] */
|
||||
0.1 + boostData.dotDistance * 0.6 * boostData.brightness
|
||||
/* lightness range from [0.1, 0.9] */
|
||||
0.1 + boostData.dotDistance * 0.8 * boostData.brightness
|
||||
);
|
||||
|
||||
const rgbColor = colorWheelColor;
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
#zen-boost-advanced-color-options-panel {
|
||||
color-scheme: light;
|
||||
-zen-window-transform-origin: 50% 0%;
|
||||
--panel-padding: 15px;
|
||||
|
||||
& p {
|
||||
color: #3a3a3b;
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
color-scheme: light;
|
||||
}
|
||||
appearance: none;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.source-editor-frame {
|
||||
@@ -151,7 +152,6 @@ body {
|
||||
#zen-boost-head-wrapper {
|
||||
-moz-window-dragging: drag; /* Allow dragging the window with the custom titlebar */
|
||||
|
||||
margin-bottom: -10px;
|
||||
height: 40px;
|
||||
min-height: 40px;
|
||||
max-height: 40px;
|
||||
@@ -231,7 +231,6 @@ body {
|
||||
#zen-boost-filter-wrapper {
|
||||
padding: 20px;
|
||||
gap: 14px;
|
||||
margin-top: 10px;
|
||||
padding-top: 10px;
|
||||
|
||||
background-color: #fcfcfe;
|
||||
|
||||
Reference in New Issue
Block a user