Rename sync_with_os -> "Automatic (match OS colour mode)"

This commit is contained in:
Kabiru Mwenja
2025-08-04 13:41:52 +03:00
parent ed0060df20
commit da68abfa83
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -295,7 +295,7 @@ module ApplicationHelper
[I18n.t("themes.light"), "light"],
[I18n.t("themes.light_high_contrast"), "light_high_contrast"],
[I18n.t("themes.dark"), "dark"],
[I18n.t("themes.sync_with_system"), "sync_with_system"]
[I18n.t("themes.sync_with_os"), "sync_with_os"]
]
end
+1 -1
View File
@@ -131,7 +131,7 @@ class UserPreference < ApplicationRecord
end
def sync_with_system_theme?
theme == "sync_with_system"
theme == "sync_with_os"
end
def high_contrast_theme?
+1 -1
View File
@@ -742,7 +742,7 @@ en:
dark: "Dark"
light: "Light"
light_high_contrast: "Light high contrast"
sync_with_system: "Auto (system default)"
sync_with_os: "Automatic (match OS colour mode)"
types:
index:
+1 -1
View File
@@ -11,7 +11,7 @@
},
"theme": {
"type": "string",
"enum": ["light", "light_high_contrast", "dark", "sync_with_system"]
"enum": ["light", "light_high_contrast", "dark", "sync_with_os"]
},
"disable_keyboard_shortcuts": {
"type": "boolean"
@@ -41,7 +41,7 @@ export default class AutoThemeSwitcher extends Controller {
declare readonly modeValue:string;
connect() {
if (this.modeValue !== 'sync_with_system') return;
if (this.modeValue !== 'sync_with_os') return;
useMatchMedia(this, {
mediaQueries: {