mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
Rename sync_with_os -> "Automatic (match OS colour mode)"
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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?
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user