mirror of
https://github.com/zen-browser/desktop.git
synced 2026-08-22 06:30:49 +00:00
feat: Set auto theme as default theme for zen, b=(no-bug), c=common, tabs
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
diff --git a/browser/components/customizableui/CustomizableUI.sys.mjs b/browser/components/customizableui/CustomizableUI.sys.mjs
|
||||
index 91088fab1759b9af908912648d28daa5938a29c9..3f52ee8cd77ac171fd2cbf355ade1371e57d0db5 100644
|
||||
index 91088fab1759b9af908912648d28daa5938a29c9..399ee5303c909c7bd81cbfad3f0957350d49a03e 100644
|
||||
--- a/browser/components/customizableui/CustomizableUI.sys.mjs
|
||||
+++ b/browser/components/customizableui/CustomizableUI.sys.mjs
|
||||
@@ -13,6 +13,7 @@ ChromeUtils.defineESModuleGetters(lazy, {
|
||||
@@ -10,15 +10,6 @@ index 91088fab1759b9af908912648d28daa5938a29c9..3f52ee8cd77ac171fd2cbf355ade1371
|
||||
HomePage: "resource:///modules/HomePage.sys.mjs",
|
||||
PanelMultiView: "resource:///modules/PanelMultiView.sys.mjs",
|
||||
PrivateBrowsingUtils: "resource://gre/modules/PrivateBrowsingUtils.sys.mjs",
|
||||
@@ -25,7 +26,7 @@ ChromeUtils.defineLazyGetter(lazy, "gWidgetsBundle", function () {
|
||||
return Services.strings.createBundle(kUrl);
|
||||
});
|
||||
|
||||
-const kDefaultThemeID = "default-theme@mozilla.org";
|
||||
+const kDefaultThemeID = "firefox-compact-dark@mozilla.org";
|
||||
|
||||
const kSpecialWidgetPfx = "customizableui-special-";
|
||||
|
||||
@@ -338,13 +339,11 @@ var CustomizableUIInternal = {
|
||||
"vertical-spacer",
|
||||
"urlbar-container",
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
diff --git a/browser/themes/BuiltInThemes.sys.mjs b/browser/themes/BuiltInThemes.sys.mjs
|
||||
index cc7f6cf93e04d339fb79a028b1e5ac6e79eae9c3..85e0d653f9a6d577bdea2a1c9d53018dd45684fa 100644
|
||||
--- a/browser/themes/BuiltInThemes.sys.mjs
|
||||
+++ b/browser/themes/BuiltInThemes.sys.mjs
|
||||
@@ -74,7 +74,7 @@ class _BuiltInThemes {
|
||||
maybeInstallActiveBuiltInTheme() {
|
||||
const activeThemeID = Services.prefs.getStringPref(
|
||||
kActiveThemePref,
|
||||
- "default-theme@mozilla.org"
|
||||
+ "firefox-compact-dark@mozilla.org"
|
||||
);
|
||||
let activeBuiltInTheme = this.builtInThemeMap.get(activeThemeID);
|
||||
|
||||
@@ -166,7 +166,7 @@ class _BuiltInThemes {
|
||||
async _uninstallExpiredThemes() {
|
||||
const activeThemeID = Services.prefs.getStringPref(
|
||||
kActiveThemePref,
|
||||
- "default-theme@mozilla.org"
|
||||
+ "firefox-compact-dark@mozilla.org"
|
||||
);
|
||||
const now = new Date();
|
||||
const expiredThemes = Array.from(this.builtInThemeMap.entries()).filter(
|
||||
Reference in New Issue
Block a user