Fix: Unexpected Spelling in Theme Configuration Page, p=#10696

Co-authored-by: Mr. M <mr.m@tuta.com>
This commit is contained in:
alightsoulmate
2025-10-06 01:00:19 +08:00
committed by GitHub
parent f273cd8fd1
commit 2dd185288d
3 changed files with 11 additions and 3 deletions

View File

@@ -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

View File

@@ -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();

View File

@@ -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;
}