mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 22:05:44 +01:00
client: add the "System" theme
This commit is contained in:
@@ -61,7 +61,9 @@ function index(req: Request, res: Response) {
|
||||
}
|
||||
|
||||
function getThemeCssUrl(theme: string, themeNote: BNote | null) {
|
||||
if (theme === 'light') {
|
||||
if (theme === 'system') {
|
||||
return `${assetPath}/stylesheets/theme.css`;
|
||||
} else if (theme === 'light') {
|
||||
// light theme is always loaded as baseline
|
||||
return false;
|
||||
} else if (theme === 'dark') {
|
||||
|
||||
Reference in New Issue
Block a user