mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-18 00:02:28 +08:00
Add themes that can be base
This commit is contained in:
parent
1e81831ea0
commit
e2c317f59c
@ -37,7 +37,7 @@ function index(req: Request, res: Response) {
|
|||||||
device: view,
|
device: view,
|
||||||
csrfToken: csrfToken,
|
csrfToken: csrfToken,
|
||||||
themeCssUrl: getThemeCssUrl(theme, themeNote),
|
themeCssUrl: getThemeCssUrl(theme, themeNote),
|
||||||
themeUseNextAsBase: themeNote?.getAttributeValue("label", "appThemeBase") === "next",
|
themeUseNextAsBase: themeNote?.getAttributeValue("label", "appThemeBase"),
|
||||||
headingStyle: options.headingStyle,
|
headingStyle: options.headingStyle,
|
||||||
layoutOrientation: options.layoutOrientation,
|
layoutOrientation: options.layoutOrientation,
|
||||||
platform: process.platform,
|
platform: process.platform,
|
||||||
|
@ -53,8 +53,12 @@
|
|||||||
<link href="<%= themeCssUrl %>" rel="stylesheet">
|
<link href="<%= themeCssUrl %>" rel="stylesheet">
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
||||||
<% if (themeUseNextAsBase) { %>
|
<% if (themeUseNextAsBase === "next") { %>
|
||||||
<link href="<%= assetPath %>/stylesheets/theme-next.css" rel="stylesheet">
|
<link href="<%= assetPath %>/stylesheets/theme-next.css" rel="stylesheet">
|
||||||
|
<% } else if (themeUseNextAsBase === "next-dark") { %>
|
||||||
|
<link href="<%= assetPath %>/stylesheets/theme-next-dark.css" rel="stylesheet">
|
||||||
|
<% } else if (themeUseNextAsBase === "next-light") { %>
|
||||||
|
<link href="<%= assetPath %>/stylesheets/theme-next-light.css" rel="stylesheet">
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
||||||
<link href="<%= assetPath %>/stylesheets/style.css" rel="stylesheet">
|
<link href="<%= assetPath %>/stylesheets/style.css" rel="stylesheet">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user