1
0
Fork 1
mirror of https://github.com/zen-browser/desktop.git synced 2025-07-10 07:55:30 +02:00

Added huge UI changes

This commit is contained in:
Mauro Balades 2024-04-21 02:23:18 +02:00
parent 89810a0be9
commit f02af579bd
20 changed files with 264 additions and 566 deletions

View file

@ -1,8 +1,16 @@
diff --git a/browser/components/customizableui/CustomizeMode.sys.mjs b/browser/components/customizableui/CustomizeMode.sys.mjs
index 5f6d01d8337efc515cc2687782a07af893ea85d8..3a1af9f3969e283a5eb5b225ba8389fd82e22184 100644
index 5f6d01d8337efc515cc2687782a07af893ea85d8..b008373667b629ff6d230bea0114a28f9847ace9 100644
--- a/browser/components/customizableui/CustomizeMode.sys.mjs
+++ b/browser/components/customizableui/CustomizeMode.sys.mjs
@@ -356,7 +356,7 @@ CustomizeMode.prototype = {
@@ -138,6 +138,7 @@ export function CustomizeMode(aWindow) {
Services.prefs.addObserver(kBookmarksToolbarPref, this);
this.window.addEventListener("unload", this);
+ this._zenUpdateWindowSeparator();
}
CustomizeMode.prototype = {
@@ -356,7 +357,7 @@ CustomizeMode.prototype = {
this._transitioning = true;
let customizer = document.getElementById("customization-container");
@ -11,7 +19,7 @@ index 5f6d01d8337efc515cc2687782a07af893ea85d8..3a1af9f3969e283a5eb5b225ba8389fd
browser.hidden = true;
customizer.hidden = false;
@@ -487,7 +487,7 @@ CustomizeMode.prototype = {
@@ -487,7 +488,7 @@ CustomizeMode.prototype = {
}
let customizer = document.getElementById("customization-container");
@ -20,7 +28,7 @@ index 5f6d01d8337efc515cc2687782a07af893ea85d8..3a1af9f3969e283a5eb5b225ba8389fd
customizer.hidden = true;
browser.hidden = false;
@@ -2278,6 +2278,20 @@ CustomizeMode.prototype = {
@@ -2278,6 +2279,20 @@ CustomizeMode.prototype = {
if (makeSpaceImmediately) {
aItem.setAttribute("notransition", "true");
}
@ -41,3 +49,23 @@ index 5f6d01d8337efc515cc2687782a07af893ea85d8..3a1af9f3969e283a5eb5b225ba8389fd
aItem.style[prop] = borderWidth + "px";
aItem.style.removeProperty(otherProp);
if (makeSpaceImmediately) {
@@ -2931,6 +2946,19 @@ CustomizeMode.prototype = {
return uninit;
},
+
+ _zenUpdateWindowSeparator() {
+ let range = this.$("customization-zen-browser-space");
+ const kZenThemePanelSeparationPref = "zen.theme.panel-separation";
+ range.value = Services.prefs.getIntPref(kZenThemePanelSeparationPref);
+ range.addEventListener("input", () => {
+ let value = range.value;
+ Services.prefs.setIntPref(kZenThemePanelSeparationPref, value);
+ });
+ Services.prefs.addObserver(kZenThemePanelSeparationPref, () => {
+ range.value = Services.prefs.getIntPref(kZenThemePanelSeparationPref);
+ });
+ },
};
function __dumpDragData(aEvent, caller) {