Comments (16)
@fabiospampinato, I have implemented new version of dark mode according to @RomanKornev 's implementation. Thank @RomanKornev for your first idea.
Features:
- Switch between 2 modes.
- Rewrite misc.css (Using scss)
You guys can check it here https://github.com/duynguyenhoang/notable/tree/feature/add_dark_mode
It is still under early phase, I am fixing all styles to make sure it work correctly with both themes
Please give me your idea or feedback.
from notable.
Refactoring all that UI-related code (7713012) took longer than expected, but now a dark theme, and eventually third-party themes, are much easier to implement:
Light theme:
Dark theme:
It isn't quite ready yet, as I still have to integrate into the code and properly theme a few more things (rendered Markdown theme, codemirror/monaco, syntax highlighting, katex formulas, mermaid diagrams), but I think it's a good start, what do you guys think?
PS. I've modeled the dark theme around my Monokai Night theme for vscode, perhaps you might want to take a look at that too.
PS2. A complete dark theme might land in about 2 releases, as there are some pressing bugs that I'd like to get fixed for the next release.
from notable.
Not sure how much of an effort it is to do this. As far as I know it also took the Visual Studio Code devs quite a while until they got this working.
Yeah that's basically unthemeable, it would have to be reimplemented entirely, that's way it took a while for the vscode team to get there too.
Now the next step obviously would be user defined themes 😉
Definitely, we'll to wait a while for that though, as that's a quite complicate thing to put up properly, and there are still lots of pressing issues to address, let's track that here #104
from notable.
Definitely, if there's a dark version of the CSS GitHub is using for styling Markdown notes this should be easy to implement.
from notable.
if there's a dark version of the CSS GitHub is using for styling Markdown notes this should be easy to implement.
Famous last words, pretty much everything except theming the rendered Markdown was difficult to do in some way.
I went all the way with the darkness, I'd be interested in hearing your feedback about this theme, here there are some screenshots:
from notable.
@mikaelmello Hopefully this should land in v1.5. If you want to try it today (but keep in mind that it's very much not complete yet) you'll have to execute the following in the devtools: $('body').toggleClass ( 'theme-light theme-dark' )
from notable.
Thanks! I'll let you know about any issues I might encounter (hopefully I can fix them too!)
Also, if you have other "beta" features that are functional but need more robustness, feel free to ask me, I'm using notable a lot so my usecase can be useful
from notable.
Take a look at https://github.com/StylishThemes/GitHub-Dark.
It also has loads of syntax highlighting themes including One Dark
.
from notable.
Darkmode Alpha is here: RomanKornev/notable/tree/darkmode
What would be the best way to merge it?
I'm open to suggestions or potential issues.
from notable.
@RomanKornev Thanks but this should probably be implemented by compiling 2 separate versions of Svelto's CSS, we also need to properly reorganize the src/renderer/template/src
directory first. Also while I do appreciate the effort the result looks a bit off to me 🤔
from notable.
Check out the new dark theme PR in #333 😄 .
@duynguyenhoang Sorry, but your implementation had too many merge conflicts and didn't compile.
from notable.
What is the status after v1.4? Is there some way I can activate it on my install?
from notable.
The inline highlights are not visible in dark mode, and so is the table :
from notable.
@raggs yeah the editor & preview components are very much unthemed yet.
from notable.
Just tried the new dark theme and I really like it. The menu bar at the top is not themed yet. Not sure how much of an effort it is to do this. As far as I know it also took the Visual Studio Code devs quite a while until they got this working.
Now the next step obviously would be user defined themes 😉
from notable.
nb4 solarized dark :). User defined would be great, too.
Thanks so much for yalls work, looking forward to any incarnation of this!
from notable.
Related Issues (20)
- Don't interpret two forward slashes (e.g. after https:) as regex filter.
- Search for tags with number of notes under
- Include and prioritize "important" matches in search
- Special tags to appear with note title in search panel
- Show "Favorite" status as icon in the note (search) list
- Prioritize complete and contiguous matches in tag entry
- Formatting insinde URLs
- URL pull from a folder link
- Mermaid not rendering flowchart
- Ability to Use Regex $ Notation (Captured Groups) in Replace Field
- Search Results: show number of notes matching
- Search results: Option to "show more context"
- Is this project dead? HOT 1
- Add option to disable "modified" field in notes
- Only attachments are exporting during PDF export
- Add comparison with Obsidian
- Notes: Report Broken Link - search in code blocks
- An error occurred: $ is not defined
- macOS Accessibility?
- Checkboxes stop working after empty text
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from notable.