Giter Site home page Giter Site logo

Dark theme about notable HOT 16 CLOSED

notable avatar notable commented on May 12, 2024 64
Dark theme

from notable.

Comments (16)

duynguyenhoang avatar duynguyenhoang commented on May 12, 2024 31

@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)

Main window
Switch mode menu
Editor

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.

fabiospampinato avatar fabiospampinato commented on May 12, 2024 7

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:

screen shot 2019-02-21 at 23 23 03

Dark theme:

screen shot 2019-02-21 at 23 23 29

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.

fabiospampinato avatar fabiospampinato commented on May 12, 2024 3

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.

fabiospampinato avatar fabiospampinato commented on May 12, 2024 2

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.

fabiospampinato avatar fabiospampinato commented on May 12, 2024 2

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:

Screen Shot 2019-05-11 at 21 18 27

Screen Shot 2019-05-11 at 21 19 01

Screen Shot 2019-05-11 at 21 18 48

from notable.

fabiospampinato avatar fabiospampinato commented on May 12, 2024 1

@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.

mikaelmello avatar mikaelmello commented on May 12, 2024 1

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.

RomanKornev avatar RomanKornev commented on May 12, 2024

Take a look at https://github.com/StylishThemes/GitHub-Dark.
It also has loads of syntax highlighting themes including One Dark.

from notable.

RomanKornev avatar RomanKornev commented on May 12, 2024

Darkmode Alpha is here: RomanKornev/notable/tree/darkmode

main_dark

What would be the best way to merge it?
I'm open to suggestions or potential issues.

from notable.

fabiospampinato avatar fabiospampinato commented on May 12, 2024

@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.

RomanKornev avatar RomanKornev commented on May 12, 2024

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.

mikaelmello avatar mikaelmello commented on May 12, 2024

What is the status after v1.4? Is there some way I can activate it on my install?

from notable.

raags avatar raags commented on May 12, 2024

The inline highlights are not visible in dark mode, and so is the table :

image

from notable.

fabiospampinato avatar fabiospampinato commented on May 12, 2024

@raggs yeah the editor & preview components are very much unthemed yet.

from notable.

eddex avatar eddex commented on May 12, 2024

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.

narfman0 avatar narfman0 commented on May 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.