Skip to content

Build your personal knowledge base with Trilium Notes

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

Adorian Doran8c17be89533a
diff --git a/src/public/app/widgets/type_widgets/options/appearance/theme.js b/src/public/app/widgets/type_widgets/options/appearance/theme.js
index 8a2267f6df..e6ec9d960b 100644
--- a/src/public/app/widgets/type_widgets/options/appearance/theme.js
+++ b/src/public/app/widgets/type_widgets/options/appearance/theme.js
@@ -71,7 +71,7 @@ export default class ThemeOptions extends OptionsWidget {
{ val: 'next', title: t("theme.triliumnext") },
{ val: 'next-light', title: t("theme.triliumnext-light") },
{ 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: 'dark', title: t('theme.dark_theme') }
].concat(await server.get('options/user-themes'));
diff --git a/src/public/translations/en/translation.json b/src/public/translations/en/translation.json
index b30e4c884b..24a3c44972 100644
--- a/src/public/translations/en/translation.json
+++ b/src/public/translations/en/translation.json
@@ -1072,7 +1072,7 @@
"title": "Application Theme",
"theme_label": "Theme",
"override_theme_fonts_label": "Override theme fonts",
- "system_theme": "System",
+ "auto_theme": "Auto",
"light_theme": "Light",
"dark_theme": "Dark",
"triliumnext": "TriliumNext Beta (Follow system color scheme)",
diff --git a/src/routes/index.ts b/src/routes/index.ts
index fa6382c194..aa943267cf 100644
--- a/src/routes/index.ts
+++ b/src/routes/index.ts
@@ -61,7 +61,7 @@ function index(req: Request, res: Response) {
}
function getThemeCssUrl(theme: string, themeNote: BNote | null) {
- if (theme === 'system') {
+ if (theme === 'auto') {
return `${assetPath}/stylesheets/theme.css`;
} else if (theme === 'light') {
// light theme is always loaded as baseline