Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 7bcfb1d

Browse files
committed
chore(docs): minor updates
1 parent e39bee2 commit 7bcfb1d

16 files changed

+105
-276
lines changed

src/public/app/doc_notes/en/User Guide/!!!meta.json

Lines changed: 5 additions & 134 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"formatVersion": 2,
3-
"appVersion": "0.91.6-test-250214-024424",
3+
"appVersion": "0.91.6-test-250217-024840",
44
"files": [
55
{
66
"isClone": false,
@@ -11,7 +11,7 @@
1111
"title": "User Guide",
1212
"notePosition": 20,
1313
"prefix": null,
14-
"isExpanded": false,
14+
"isExpanded": true,
1515
"type": "text",
1616
"mime": "text/html",
1717
"attributes": [
@@ -27,135 +27,6 @@
2727
"attachments": [],
2828
"dirFileName": "User Guide",
2929
"children": [
30-
{
31-
"isClone": false,
32-
"noteId": "jrai60LsOhdk",
33-
"notePath": [
34-
"OkOZllzB3fqN",
35-
"jrai60LsOhdk"
36-
],
37-
"title": "Installation",
38-
"notePosition": 20,
39-
"prefix": null,
40-
"isExpanded": false,
41-
"type": "text",
42-
"mime": "text/html",
43-
"attributes": [
44-
{
45-
"type": "relation",
46-
"name": "internalLink",
47-
"value": "KPeRqBU7YSAY",
48-
"isInheritable": false,
49-
"position": 10
50-
},
51-
{
52-
"type": "label",
53-
"name": "hideChildrenOverview",
54-
"value": "",
55-
"isInheritable": false,
56-
"position": 10
57-
}
58-
],
59-
"format": "html",
60-
"dataFileName": "Installation.html",
61-
"attachments": [
62-
{
63-
"attachmentId": "Mp9RaDeLtETz",
64-
"title": "Fedora_logo.svg",
65-
"role": "image",
66-
"mime": "image/svg+xml",
67-
"position": 10,
68-
"dataFileName": "Installation_Fedora_logo.svg"
69-
}
70-
],
71-
"dirFileName": "Installation",
72-
"children": [
73-
{
74-
"isClone": false,
75-
"noteId": "KPeRqBU7YSAY",
76-
"notePath": [
77-
"OkOZllzB3fqN",
78-
"jrai60LsOhdk",
79-
"KPeRqBU7YSAY"
80-
],
81-
"title": "On Fedora Linux",
82-
"notePosition": 10,
83-
"prefix": null,
84-
"isExpanded": false,
85-
"type": "text",
86-
"mime": "text/html",
87-
"attributes": [
88-
{
89-
"type": "label",
90-
"name": "iconClass",
91-
"value": "bx bxl-tux",
92-
"isInheritable": false,
93-
"position": 10
94-
}
95-
],
96-
"format": "html",
97-
"dataFileName": "On Fedora Linux.html",
98-
"attachments": [
99-
{
100-
"attachmentId": "YHD8kyEhgkyZ",
101-
"title": "Screenshot From 2025-02-05 19-30-50.png",
102-
"role": "image",
103-
"mime": "image/png",
104-
"position": 10,
105-
"dataFileName": "On Fedora Linux_Screenshot.png"
106-
},
107-
{
108-
"attachmentId": "0CpZ5v5xUMia",
109-
"title": "Screenshot From 2025-02-05 19-35-45.png",
110-
"role": "image",
111-
"mime": "image/png",
112-
"position": 10,
113-
"dataFileName": "1_On Fedora Linux_Screenshot.png"
114-
},
115-
{
116-
"attachmentId": "9u7nBYvUbXJW",
117-
"title": "image.png",
118-
"role": "image",
119-
"mime": "image/png",
120-
"position": 10,
121-
"dataFileName": "On Fedora Linux_image.png"
122-
},
123-
{
124-
"attachmentId": "ipGBq0moRvF3",
125-
"title": "Screenshot From 2025-02-05 19-36-27.png",
126-
"role": "image",
127-
"mime": "image/png",
128-
"position": 10,
129-
"dataFileName": "2_On Fedora Linux_Screenshot.png"
130-
},
131-
{
132-
"attachmentId": "fa83WbDUIB4G",
133-
"title": "image.png",
134-
"role": "image",
135-
"mime": "image/png",
136-
"position": 10,
137-
"dataFileName": "1_On Fedora Linux_image.png"
138-
},
139-
{
140-
"attachmentId": "kcCWr0YXytOU",
141-
"title": "Screenshot From 2025-02-05 19-30-30.png",
142-
"role": "image",
143-
"mime": "image/png",
144-
"position": 10,
145-
"dataFileName": "3_On Fedora Linux_Screenshot.png"
146-
},
147-
{
148-
"attachmentId": "YF3JZy1qz7Fq",
149-
"title": "image.png",
150-
"role": "image",
151-
"mime": "image/png",
152-
"position": 10,
153-
"dataFileName": "2_On Fedora Linux_image.png"
154-
}
155-
]
156-
}
157-
]
158-
},
15930
{
16031
"isClone": false,
16132
"noteId": "yoAe4jV2yzbd",
@@ -166,7 +37,7 @@
16637
"title": "Features",
16738
"notePosition": 40,
16839
"prefix": null,
169-
"isExpanded": true,
40+
"isExpanded": false,
17041
"type": "text",
17142
"mime": "text/html",
17243
"attributes": [],
@@ -314,7 +185,7 @@
314185
"title": "Note Types",
315186
"notePosition": 70,
316187
"prefix": null,
317-
"isExpanded": true,
188+
"isExpanded": false,
318189
"type": "text",
319190
"mime": "text/html",
320191
"attributes": [],
@@ -548,7 +419,7 @@
548419
"title": "Book",
549420
"notePosition": 30,
550421
"prefix": null,
551-
"isExpanded": true,
422+
"isExpanded": false,
552423
"type": "text",
553424
"mime": "text/html",
554425
"attributes": [

src/public/app/doc_notes/en/User Guide/User Guide/Advanced usage/Theme development/Reference.html

Lines changed: 50 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,37 @@
1313
<h1 data-trilium-h1>Reference</h1>
1414

1515
<div class="ck-content">
16+
<h2>Detecting mobile vs. desktop</h2>
17+
<p>The mobile layout is different than the one on the desktop. Use <code>body.mobile</code> and <code>body.desktop</code> to
18+
differentiate between them.</p><pre><code class="language-text-css">body.mobile #root-widget {
19+
/* Do something on mobile */
20+
}
21+
22+
body.desktop #root-widget {
23+
/* Do something on desktop */
24+
}</code></pre>
25+
<p>Do note that there is also a “tablet mode” in the mobile layout. For that
26+
particular case media queries are required:</p><pre><code class="language-text-css">@media (max-width: 991px) {
27+
28+
#launcher-pane {
29+
30+
/* Do something on mobile layout */
31+
32+
}
33+
34+
}
35+
36+
37+
38+
@media (min-width: 992px) {
39+
40+
#launcher-pane {
41+
42+
/* Do something on mobile tablet + desktop layout */
43+
44+
}
45+
46+
}</code></pre>
1647
<h2>Detecting horizontal vs. vertical layout</h2>
1748
<p>The user can select between vertical layout (the classical one, where
1849
the launcher bar is on the left) and a horizontal layout (where the launcher
@@ -85,14 +116,14 @@ <h4>On Windows</h4>
85116
<h4>On macOS</h4>
86117
<p>On macOS the semaphore window buttons are enabled by default when the
87118
native title bar is disabled. The offset of the buttons can be adjusted
88-
using:</p><pre><code class="language-text-x-trilium-auto">body {
119+
using:</p><pre><code class="language-text-css">body {
89120
--native-titlebar-darwin-x-offset: 12;
90121
--native-titlebar-darwin-y-offset: 14 !important;
91122
}</code></pre>
92123
<h3>Background/transparency effects on Windows (Mica)</h3>
93124
<p>Windows 11 offers a special background/transparency effect called Mica,
94125
which can be enabled by themes by setting the <code>--background-material</code> variable
95-
at <code>body</code> level:</p><pre><code class="language-text-x-trilium-auto">body.electron.platform-win32 {
126+
at <code>body</code> level:</p><pre><code class="language-text-css">body.electron.platform-win32 {
96127
--background-material: tabbed;
97128
}</code></pre>
98129
<p>The value can be either <code>tabbed</code> (especially useful for the horizontal
@@ -104,12 +135,12 @@ <h2>Note icons, tab workspace accent color</h2>
104135
<p>Theme capabilities are small adjustments done through CSS variables that
105136
can affect the layout or the visual aspect of the application.</p>
106137
<p>In the tab bar, to display the icons of notes instead of the icon of the
107-
workspace:</p><pre><code class="language-text-x-trilium-auto">:root {
138+
workspace:</p><pre><code class="language-text-css">:root {
108139
--tab-note-icons: true;
109140
}</code></pre>
110141
<p>When a workspace is hoisted for a given tab, it is possible to get the
111142
background color of that workspace, for example to apply a small strip
112-
on the tab instead of the whole background color:</p><pre><code class="language-text-x-trilium-auto">.note-tab .note-tab-wrapper {
143+
on the tab instead of the whole background color:</p><pre><code class="language-text-css">.note-tab .note-tab-wrapper {
113144
--tab-background-color: initial !important;
114145
}
115146

@@ -127,6 +158,21 @@ <h2>Custom fonts</h2>
127158
href="../Custom%20resource%20providers.html">Custom resource providers</a>.
128159
Basically import a font into Trilium and assign it <code>#customResourceProvider=fonts/myfont.ttf</code> and
129160
then import the font in CSS via <code>/custom/fonts/myfont.ttf</code>.</p>
161+
<h2>Dark and light themes</h2>
162+
<p>A light theme needs to have the following CSS:</p><pre><code class="language-text-css">:root {
163+
--theme-style: light;
164+
}</code></pre>
165+
<p>if the theme is dark, then <code>--theme-style</code> needs to be <code>dark</code>.</p>
166+
<p>If the theme is auto (e.g. supports both light or dark based on <code>prefers-color-scheme</code>)
167+
it must also declare (in addition to setting <code>--theme-style</code> to
168+
either <code>light</code> or <code>dark</code>):</p><pre><code class="language-text-css">:root {
169+
170+
--theme-style-auto: true;
171+
172+
}</code></pre>
173+
<p>This will affect the behavior of the Electron application by informing
174+
the operating system of the color preference (e.g. background effects will
175+
appear correct on Windows).</p>
130176
</div>
131177
</div>
132178
</body>

src/public/app/doc_notes/en/User Guide/User Guide/Installation.html

Lines changed: 0 additions & 38 deletions
This file was deleted.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

src/public/app/doc_notes/en/User Guide/User Guide/Installation/On Fedora Linux.html

Lines changed: 0 additions & 82 deletions
This file was deleted.
Binary file not shown.

0 commit comments

Comments
 (0)