client: add the "System" theme

This commit is contained in:
Adorian Doran
2024-12-16 22:09:26 +02:00
parent 1c3643695c
commit aba2813682
4 changed files with 13 additions and 2 deletions

View File

@@ -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') {