From b7420a766806e856da58d4b693aec27ad5d2a676 Mon Sep 17 00:00:00 2001 From: Cody Williams Date: Mon, 14 Feb 2022 00:35:17 -0800 Subject: [PATCH 1/2] Update README.md --- README.md | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 03b70b6..a061f85 100644 --- a/README.md +++ b/README.md @@ -10,11 +10,14 @@ A beautiful, opinionated, material design inspired dark mode theme for Trilium w * Maximum Readability * Dark Mode Friendly Font * Consistent Design + * Including fixes to alignment and layout issues * Custom Code View Styling * Dark Mode Native * Ligature Font * Complete Style Coverage * More than even built in default themes and dark mode! +* New Features + * Zen Mode - focus solely on the note at hand ## Support @@ -28,11 +31,30 @@ Technically none, Midnight will try and fetch the fonts it uses from the web. Fo * [FiraCode](https://github.com/tonsky/FiraCode) - The best programming font, great dark mode look and programming ligatures. ## Installation +* See [prerequisites](https://github.com/cwilliams5/Midnight-Trilium-Dark-Mode/edit/main/README.md#prerequisites) to guarantee font use even when offline. * Create a new note in Trilium, store it anywhere you would like. * Change note type to CSS. * Paste in the raw contents of [midnight.css](https://raw.githubusercontent.com/cwilliams5/Midnight-Trilium-Dark-Mode/main/midnight.css). -* Add an owned attribute of without the quotes "#appTheme=Midnight" to the note. -* Click the Trilium icon in the top left, select options, and under theme select Midnight. +* Add an owned attribute of ```#appTheme=Midnight"``` to the note. +* Click the Trilium icon in the top left, select Options, and under theme select Midnight. + +### Zen Mode +Enable the optional Zen Mode. Remember the ```ALT + Z``` key combo to exit Zen Mode! +* Create a new note in Trilium, store it anywhere you would like. +* Change note type to JS Frontend. +* Paste in the raw contents of [zenmode.js](https://raw.githubusercontent.com/cwilliams5/Midnight-Trilium-Dark-Mode/main/zenmode.js). +* Add an owned attribute of ```#run=frontendStartup``` to the note. +* Click the Trilium icon in the top left, select Reload frontend, or press ```F5``` to reload the front end. + +## Customization +The code is laid out and commented for your easy customization. Change what you want, delete what you want. Let me know anything interesting you think is valuable for the core. + +### Highly Opinionated +As described, this is my daily theme and is highly opinionated to my desires. I created a "highly opiniated" section of the code for those changes I've made that I expect may be controversial. This will allow easy removal if you do not like. Here they are so far: +* Notes have a max-width of 1200px. Midnight will overight this to 100% with a slight margin for gutter comfort. If you don't like your notes too wide, feel free to remove. + +### Zen Mode VS Extreme Zen Mode +By default, "Extreme Zen Mode" is active, meaning Zen Mode removes *everything* but the note contents. If you would prefer that more of the note UI, such as attributes, tabs, splitter, etc, remain visible, comment out or remove the Extreme Zen Mode section and uncomment the Zen Mode section. ## Donation If for some reason you want to donate for this, I'm flattered but instead please consider donating to or sponsoring [zadam](https://github.com/sponsors/zadam), the developer of [Trilium](https://github.com/zadam/trilium). From ee2d2636f2b0b696cddbb3cc80693b5bfa01838d Mon Sep 17 00:00:00 2001 From: Cody Williams Date: Mon, 14 Feb 2022 00:37:27 -0800 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a061f85..cece40b 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ The code is laid out and commented for your easy customization. Change what you ### Highly Opinionated As described, this is my daily theme and is highly opinionated to my desires. I created a "highly opiniated" section of the code for those changes I've made that I expect may be controversial. This will allow easy removal if you do not like. Here they are so far: -* Notes have a max-width of 1200px. Midnight will overight this to 100% with a slight margin for gutter comfort. If you don't like your notes too wide, feel free to remove. +* By default in Trilium notes have a max-width of 1200px. Midnight will override this to 100% with a slight margin for gutter comfort. If you don't like your notes too wide, feel free to remove. ### Zen Mode VS Extreme Zen Mode By default, "Extreme Zen Mode" is active, meaning Zen Mode removes *everything* but the note contents. If you would prefer that more of the note UI, such as attributes, tabs, splitter, etc, remain visible, comment out or remove the Extreme Zen Mode section and uncomment the Zen Mode section.