Bug 1961393 - Show current theme on about:editprofile if not in default list. r=profiles-reviewers,tbersentes,jhirsch
Differential Revision: https://phabricator.services.mozilla.com/D247444
This commit is contained in:
committed by
nbaumgardner@mozilla.com
parent
e5d15be83d
commit
85f4ed5a3b
@@ -723,8 +723,8 @@ class SelectableProfileServiceClass extends EventEmitter {
|
||||
|
||||
let theme = isDark && !!data.darkTheme ? data.darkTheme : data.theme;
|
||||
|
||||
let themeFg = theme.toolbar_text;
|
||||
let themeBg = theme.toolbarColor;
|
||||
let themeFg = theme.toolbar_text || theme.textcolor;
|
||||
let themeBg = theme.toolbarColor || theme.accentcolor;
|
||||
|
||||
if (theme.id === DEFAULT_THEME_ID || !themeFg || !themeBg) {
|
||||
window.addEventListener(
|
||||
|
||||
Reference in New Issue
Block a user