mirror of
https://github.com/zen-browser/desktop.git
synced 2026-01-05 21:07:57 +00:00
Fix: Unexpected Spelling in Theme Configuration Page, p=#10696
Co-authored-by: Mr. M <mr.m@tuta.com>
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
- name: zen.theme.disable-lightweight
|
||||
value: true
|
||||
|
||||
- name: zen.theme.use-sysyem-colors
|
||||
- name: zen.theme.use-system-colors
|
||||
value: false
|
||||
|
||||
- name: zen.theme.hide-tab-throbber
|
||||
|
||||
@@ -6,7 +6,7 @@ const { AppConstants } = ChromeUtils.importESModule('resource://gre/modules/AppC
|
||||
|
||||
class nsZenUIMigration {
|
||||
PREF_NAME = 'zen.ui.migration.version';
|
||||
MIGRATION_VERSION = 3;
|
||||
MIGRATION_VERSION = 4;
|
||||
|
||||
init(isNewProfile) {
|
||||
if (!isNewProfile) {
|
||||
@@ -77,6 +77,14 @@ class nsZenUIMigration {
|
||||
Services.prefs.setStringPref('zen.theme.accent-color', '#ffb787');
|
||||
}
|
||||
}
|
||||
|
||||
_migrateV4() {
|
||||
// Fix spelling mistake in preference name
|
||||
Services.prefs.setBoolPref(
|
||||
'zen.theme.use-system-colors',
|
||||
Services.prefs.getBoolPref('zen.theme.use-sysyem-colors', false)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export var gZenUIMigration = new nsZenUIMigration();
|
||||
|
||||
@@ -1192,7 +1192,7 @@
|
||||
}
|
||||
|
||||
shouldBeDarkMode(accentColor) {
|
||||
if (Services.prefs.getBoolPref('zen.theme.use-sysyem-colors')) {
|
||||
if (Services.prefs.getBoolPref('zen.theme.use-system-colors')) {
|
||||
return this.isDarkMode;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user