mirror of
https://github.com/zadam/trilium.git
synced 2025-10-26 07:46:30 +01:00
feat(theme): start implementing a theme for TriliumNext
This commit is contained in:
@@ -41,8 +41,9 @@ export default class ThemeOptions extends OptionsWidget {
|
||||
|
||||
async optionsLoaded(options) {
|
||||
const themes = [
|
||||
{ val: 'next', title: t("theme.triliumnext") },
|
||||
{ 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'));
|
||||
|
||||
this.$themeSelect.empty();
|
||||
|
||||
0
src/public/stylesheets/theme-next.css
Normal file
0
src/public/stylesheets/theme-next.css
Normal file
@@ -1061,7 +1061,8 @@
|
||||
"theme_label": "Theme",
|
||||
"override_theme_fonts_label": "Override theme fonts",
|
||||
"light_theme": "Light",
|
||||
"dark_theme": "Dark"
|
||||
"dark_theme": "Dark",
|
||||
"triliumnext": "TriliumNext"
|
||||
},
|
||||
"zoom_factor": {
|
||||
"title": "Zoom Factor (desktop build only)",
|
||||
|
||||
@@ -54,6 +54,8 @@ function getThemeCssUrl(theme: string) {
|
||||
return false; // light theme is always loaded as baseline
|
||||
} else if (theme === 'dark') {
|
||||
return `${assetPath}/stylesheets/theme-dark.css`;
|
||||
} else if (theme === "next") {
|
||||
return `${assetPath}/stylesheets/theme-next.css`;
|
||||
} else {
|
||||
const themeNote = attributeService.getNoteWithLabel('appTheme', theme);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user