-
-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove old code handling custom Waterfox themes.
Also remove unnecessary setting of default theme.
- Loading branch information
Showing
3 changed files
with
2 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ | |
|
||
pref("browser.theme.enableWaterfoxCustomizations", 1); | ||
pref("browser.uidensity", 1); | ||
pref("extensions.activeThemeID", "[email protected]"); | ||
|
||
// ** Theme Related Options **************************************************** | ||
// == Theme Distribution Settings ============================================== | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,9 +11,6 @@ import { BrowserUtils } from "resource:///modules/BrowserUtils.sys.mjs"; | |
export const UICustomizations = { | ||
PREF_TOOLBARPOS: "browser.tabs.toolbarposition", | ||
PREF_BOOKMARKPOS: "browser.bookmarks.toolbarposition", | ||
PREF_DEFAULTTHEME: "browser.lepton.enabled", | ||
PREF_ACTIVETHEME: "extensions.activeThemeID", | ||
DEFAULT_THEMEID: "[email protected]", | ||
|
||
init(window) { | ||
this.styleButtonBox(window.document); | ||
|
@@ -22,15 +19,6 @@ export const UICustomizations = { | |
this.moveBookmarksBar(window); | ||
this.initListeners(window); | ||
this.initPrefObservers(); | ||
|
||
// Make sure pref is aligned with active theme ID initially | ||
let activeTheme = PrefUtils.get(this.PREF_ACTIVETHEME); | ||
if ( | ||
activeTheme != this.DEFAULT_THEMEID && | ||
PrefUtils.get(this.PREF_DEFAULTTHEME) | ||
) { | ||
this.setDefaultThemePref(activeTheme); | ||
} | ||
}, | ||
|
||
initPrefObservers() { | ||
|
@@ -55,17 +43,6 @@ export const UICustomizations = { | |
} | ||
); | ||
|
||
// If activeThemeID changes update default theme pref -> could expand to do more than just default or not | ||
PrefUtils.addObserver(this.PREF_ACTIVETHEME, value => { | ||
this.setDefaultThemePref(value); | ||
}); | ||
}, | ||
|
||
setDefaultThemePref(prefValue) { | ||
PrefUtils.set( | ||
this.PREF_DEFAULTTHEME, | ||
prefValue === this.DEFAULT_THEMEID // Currently, only lepton displays icons | ||
); | ||
}, | ||
|
||
initListeners(aWindow) { | ||
|