mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-10 18:39:22 +08:00
feat(mica): pass CSS class
This commit is contained in:
parent
8cd2c69e3f
commit
cdae9f075c
@ -37,6 +37,7 @@ function index(req: Request, res: Response) {
|
|||||||
platform: process.platform,
|
platform: process.platform,
|
||||||
isElectron,
|
isElectron,
|
||||||
hasNativeTitleBar: (isElectron && options.nativeTitleBarVisible === "true"),
|
hasNativeTitleBar: (isElectron && options.nativeTitleBarVisible === "true"),
|
||||||
|
hasBackgroundEffects: true, // TODO: Replace with option
|
||||||
mainFontSize: parseInt(options.mainFontSize),
|
mainFontSize: parseInt(options.mainFontSize),
|
||||||
treeFontSize: parseInt(options.treeFontSize),
|
treeFontSize: parseInt(options.treeFontSize),
|
||||||
detailFontSize: parseInt(options.detailFontSize),
|
detailFontSize: parseInt(options.detailFontSize),
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
<link rel="manifest" crossorigin="use-credentials" href="manifest.webmanifest">
|
<link rel="manifest" crossorigin="use-credentials" href="manifest.webmanifest">
|
||||||
<title>TriliumNext Notes</title>
|
<title>TriliumNext Notes</title>
|
||||||
</head>
|
</head>
|
||||||
<body class="desktop heading-style-<%= headingStyle %> layout-<%= layoutOrientation %> platform-<%= platform %> <%= isElectron ? 'electron' : '' %> <%= hasNativeTitleBar ? 'native-titlebar' : '' %>">
|
<body class="desktop heading-style-<%= headingStyle %> layout-<%= layoutOrientation %> platform-<%= platform %> <%= isElectron ? 'electron' : '' %> <%= hasNativeTitleBar ? 'native-titlebar' : '' %> <%= hasBackgroundEffects ? 'background-effects' : '' %>">
|
||||||
<noscript><%= t("javascript-required") %></noscript>
|
<noscript><%= t("javascript-required") %></noscript>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@ -38,6 +38,7 @@
|
|||||||
appPath: "<%= appPath %>",
|
appPath: "<%= appPath %>",
|
||||||
platform: "<%= platform %>",
|
platform: "<%= platform %>",
|
||||||
hasNativeTitleBar: <%= hasNativeTitleBar %>,
|
hasNativeTitleBar: <%= hasNativeTitleBar %>,
|
||||||
|
hasBackgroundEffects: <%= hasBackgroundEffects %>,
|
||||||
TRILIUM_SAFE_MODE: <%= !!process.env.TRILIUM_SAFE_MODE %>
|
TRILIUM_SAFE_MODE: <%= !!process.env.TRILIUM_SAFE_MODE %>
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user