diff --git a/src/public/app/doc_notes/en/User Guide/!!!meta.json b/src/public/app/doc_notes/en/User Guide/!!!meta.json index b90fd4f50..4fb15df7f 100644 --- a/src/public/app/doc_notes/en/User Guide/!!!meta.json +++ b/src/public/app/doc_notes/en/User Guide/!!!meta.json @@ -1,6 +1,6 @@ { "formatVersion": 2, - "appVersion": "0.91.6-test-250214-024424", + "appVersion": "0.91.6-test-250217-024840", "files": [ { "isClone": false, @@ -11,7 +11,7 @@ "title": "User Guide", "notePosition": 20, "prefix": null, - "isExpanded": false, + "isExpanded": true, "type": "text", "mime": "text/html", "attributes": [ @@ -27,135 +27,6 @@ "attachments": [], "dirFileName": "User Guide", "children": [ - { - "isClone": false, - "noteId": "jrai60LsOhdk", - "notePath": [ - "OkOZllzB3fqN", - "jrai60LsOhdk" - ], - "title": "Installation", - "notePosition": 20, - "prefix": null, - "isExpanded": false, - "type": "text", - "mime": "text/html", - "attributes": [ - { - "type": "relation", - "name": "internalLink", - "value": "KPeRqBU7YSAY", - "isInheritable": false, - "position": 10 - }, - { - "type": "label", - "name": "hideChildrenOverview", - "value": "", - "isInheritable": false, - "position": 10 - } - ], - "format": "html", - "dataFileName": "Installation.html", - "attachments": [ - { - "attachmentId": "Mp9RaDeLtETz", - "title": "Fedora_logo.svg", - "role": "image", - "mime": "image/svg+xml", - "position": 10, - "dataFileName": "Installation_Fedora_logo.svg" - } - ], - "dirFileName": "Installation", - "children": [ - { - "isClone": false, - "noteId": "KPeRqBU7YSAY", - "notePath": [ - "OkOZllzB3fqN", - "jrai60LsOhdk", - "KPeRqBU7YSAY" - ], - "title": "On Fedora Linux", - "notePosition": 10, - "prefix": null, - "isExpanded": false, - "type": "text", - "mime": "text/html", - "attributes": [ - { - "type": "label", - "name": "iconClass", - "value": "bx bxl-tux", - "isInheritable": false, - "position": 10 - } - ], - "format": "html", - "dataFileName": "On Fedora Linux.html", - "attachments": [ - { - "attachmentId": "YHD8kyEhgkyZ", - "title": "Screenshot From 2025-02-05 19-30-50.png", - "role": "image", - "mime": "image/png", - "position": 10, - "dataFileName": "On Fedora Linux_Screenshot.png" - }, - { - "attachmentId": "0CpZ5v5xUMia", - "title": "Screenshot From 2025-02-05 19-35-45.png", - "role": "image", - "mime": "image/png", - "position": 10, - "dataFileName": "1_On Fedora Linux_Screenshot.png" - }, - { - "attachmentId": "9u7nBYvUbXJW", - "title": "image.png", - "role": "image", - "mime": "image/png", - "position": 10, - "dataFileName": "On Fedora Linux_image.png" - }, - { - "attachmentId": "ipGBq0moRvF3", - "title": "Screenshot From 2025-02-05 19-36-27.png", - "role": "image", - "mime": "image/png", - "position": 10, - "dataFileName": "2_On Fedora Linux_Screenshot.png" - }, - { - "attachmentId": "fa83WbDUIB4G", - "title": "image.png", - "role": "image", - "mime": "image/png", - "position": 10, - "dataFileName": "1_On Fedora Linux_image.png" - }, - { - "attachmentId": "kcCWr0YXytOU", - "title": "Screenshot From 2025-02-05 19-30-30.png", - "role": "image", - "mime": "image/png", - "position": 10, - "dataFileName": "3_On Fedora Linux_Screenshot.png" - }, - { - "attachmentId": "YF3JZy1qz7Fq", - "title": "image.png", - "role": "image", - "mime": "image/png", - "position": 10, - "dataFileName": "2_On Fedora Linux_image.png" - } - ] - } - ] - }, { "isClone": false, "noteId": "yoAe4jV2yzbd", @@ -166,7 +37,7 @@ "title": "Features", "notePosition": 40, "prefix": null, - "isExpanded": true, + "isExpanded": false, "type": "text", "mime": "text/html", "attributes": [], @@ -314,7 +185,7 @@ "title": "Note Types", "notePosition": 70, "prefix": null, - "isExpanded": true, + "isExpanded": false, "type": "text", "mime": "text/html", "attributes": [], @@ -548,7 +419,7 @@ "title": "Book", "notePosition": 30, "prefix": null, - "isExpanded": true, + "isExpanded": false, "type": "text", "mime": "text/html", "attributes": [ diff --git a/src/public/app/doc_notes/en/User Guide/User Guide/Advanced usage/Theme development/Reference.html b/src/public/app/doc_notes/en/User Guide/User Guide/Advanced usage/Theme development/Reference.html index e858513c1..59c2320c4 100644 --- a/src/public/app/doc_notes/en/User Guide/User Guide/Advanced usage/Theme development/Reference.html +++ b/src/public/app/doc_notes/en/User Guide/User Guide/Advanced usage/Theme development/Reference.html @@ -13,6 +13,37 @@
The mobile layout is different than the one on the desktop. Use body.mobile
and body.desktop
to
+ differentiate between them.
body.mobile #root-widget {
+ /* Do something on mobile */
+}
+
+body.desktop #root-widget {
+ /* Do something on desktop */
+}
+ Do note that there is also a “tablet mode” in the mobile layout. For that + particular case media queries are required:
@media (max-width: 991px) {
+
+ #launcher-pane {
+
+ /* Do something on mobile layout */
+
+ }
+
+}
+
+
+
+@media (min-width: 992px) {
+
+ #launcher-pane {
+
+ /* Do something on mobile tablet + desktop layout */
+
+ }
+
+}
The user can select between vertical layout (the classical one, where the launcher bar is on the left) and a horizontal layout (where the launcher @@ -85,14 +116,14 @@ body.electron:not(.native-titlebar) {
On macOS the semaphore window buttons are enabled by default when the native title bar is disabled. The offset of the buttons can be adjusted - using:
body {
+ using:body {
--native-titlebar-darwin-x-offset: 12;
--native-titlebar-darwin-y-offset: 14 !important;
}
Background/transparency effects on Windows (Mica)
Windows 11 offers a special background/transparency effect called Mica,
which can be enabled by themes by setting the --background-material
variable
- at body
level:
body.electron.platform-win32 {
+ at body
level:body.electron.platform-win32 {
--background-material: tabbed;
}
The value can be either tabbed
(especially useful for the horizontal
@@ -104,12 +135,12 @@ body.electron:not(.native-titlebar) {
Theme capabilities are small adjustments done through CSS variables that
can affect the layout or the visual aspect of the application.
In the tab bar, to display the icons of notes instead of the icon of the
- workspace:
:root {
+ workspace::root {
--tab-note-icons: true;
}
When a workspace is hoisted for a given tab, it is possible to get the
background color of that workspace, for example to apply a small strip
- on the tab instead of the whole background color:
.note-tab .note-tab-wrapper {
+ on the tab instead of the whole background color:.note-tab .note-tab-wrapper {
--tab-background-color: initial !important;
}
@@ -127,6 +158,21 @@ body.electron:not(.native-titlebar) {
href="../Custom%20resource%20providers.html">Custom resource providers.
Basically import a font into Trilium and assign it #customResourceProvider=fonts/myfont.ttf
and
then import the font in CSS via /custom/fonts/myfont.ttf
.
+ Dark and light themes
+ A light theme needs to have the following CSS:
:root {
+ --theme-style: light;
+}
+ if the theme is dark, then --theme-style
needs to be dark
.
+ If the theme is auto (e.g. supports both light or dark based on prefers-color-scheme
)
+ it must also declare (in addition to setting --theme-style
to
+ either light
or dark
):
:root {
+
+ --theme-style-auto: true;
+
+}
+ This will affect the behavior of the Electron application by informing
+ the operating system of the color preference (e.g. background effects will
+ appear correct on Windows).
diff --git a/src/public/app/doc_notes/en/User Guide/User Guide/Installation.html b/src/public/app/doc_notes/en/User Guide/User Guide/Installation.html deleted file mode 100644 index 058f84feb..000000000 --- a/src/public/app/doc_notes/en/User Guide/User Guide/Installation.html +++ /dev/null @@ -1,38 +0,0 @@ - - -
-
-
-
-
- - -
- -