client: rename the "System" theme to "Auto"

This commit is contained in:
Adorian Doran 2024-12-16 22:16:26 +02:00
parent aba2813682
commit 8c17be8953
3 changed files with 3 additions and 3 deletions

View File

@ -71,7 +71,7 @@ export default class ThemeOptions extends OptionsWidget {
{ val: 'next', title: t("theme.triliumnext") }, { val: 'next', title: t("theme.triliumnext") },
{ val: 'next-light', title: t("theme.triliumnext-light") }, { val: 'next-light', title: t("theme.triliumnext-light") },
{ val: 'next-dark', title: t("theme.triliumnext-dark") }, { val: 'next-dark', title: t("theme.triliumnext-dark") },
{ val: 'system', title: t('theme.system_theme') }, { val: 'auto', title: t('theme.auto_theme') },
{ val: 'light', title: t('theme.light_theme') }, { val: 'light', title: t('theme.light_theme') },
{ val: 'dark', title: t('theme.dark_theme') } { val: 'dark', title: t('theme.dark_theme') }
].concat(await server.get('options/user-themes')); ].concat(await server.get('options/user-themes'));

View File

@ -1072,7 +1072,7 @@
"title": "Application Theme", "title": "Application Theme",
"theme_label": "Theme", "theme_label": "Theme",
"override_theme_fonts_label": "Override theme fonts", "override_theme_fonts_label": "Override theme fonts",
"system_theme": "System", "auto_theme": "Auto",
"light_theme": "Light", "light_theme": "Light",
"dark_theme": "Dark", "dark_theme": "Dark",
"triliumnext": "TriliumNext Beta (Follow system color scheme)", "triliumnext": "TriliumNext Beta (Follow system color scheme)",

View File

@ -61,7 +61,7 @@ function index(req: Request, res: Response) {
} }
function getThemeCssUrl(theme: string, themeNote: BNote | null) { function getThemeCssUrl(theme: string, themeNote: BNote | null) {
if (theme === 'system') { if (theme === 'auto') {
return `${assetPath}/stylesheets/theme.css`; return `${assetPath}/stylesheets/theme.css`;
} else if (theme === 'light') { } else if (theme === 'light') {
// light theme is always loaded as baseline // light theme is always loaded as baseline