-
-
Notifications
You must be signed in to change notification settings - Fork 555
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implemment dark mode #411
base: master
Are you sure you want to change the base?
Implemment dark mode #411
Conversation
… support framework ready
…me further tweek, basically usable
@wayne-zhang Thanks for the PR! Been very busy lately so it might take me some time to get around to reviewing this especially since it's a large PR. I very briefly glanced over the changes and it seems relatively inline with what I'd suspect, which is good. |
@inkydragon, thanks for your test (on Windows). I know the issue of edit tab foreground color, same on Linux and MacOS, but I haven't found where it is defined, neither in npp.css or darkstyle, so haven't fix it and just leave it there. I have noticed Lua console but forgot to change it. Will fix it. Also, please test sever languages too, for example, Java, C++, C#, make file, XML. I have tested it on Linux and MacOS, no major issue expect language keywords/elements fg color need teak, use dark mode friendly colors. Current color are for light mode. |
@dail8859, review is not urgent, we all have other import works to do. One thing I'd point out - to make the change safe (and not impact default/light mode), I cloned language Lua configuration files to a separate folder (/languates/dark) instead of share them, and set different language path based on dark/default mode. In the dark lua scripts, I have replaced default foreground (#000000/back) with Lua variable darkFg and default background (#FFFFFF/white) with Lua varible darkBg, and set the variables by LuaState in NotepadNextApplication based on mode. Also, add space configuration for CPP family languages (default is light mode friendly). In theory, Lua language scripts can be shared (use the changed dark mode one) so that
problem is it is more risky as default light mode may be impacted and more regression tests (all languages should be tested in default/light mode). If you think it worth to accept the risk and make it more maintainable, I will change it to use one set of configuration for both dark/light mode. |
@inkydragon, I have fixed the 2 dark mode issues you have reported:
Please test it. |
@inkydragon, thanks for you test. I know the first character cut-off issue (margin-left settings), it's on ALL platforms actually. I know it's a configuration issuein qtdarkstype css (qtdarkstyle/dark/style.qss) but I couldn't found it where it is before. I found it finally today and fixed, it's in QAbstractView, which is the editor component of Scintilla (editor). |
@inkydragon, I have fixed the active tab bar text color issue too. My last change works on MacOS, possibly because of my MacOS is in dark mode. I have tested today's change and it works on Linux (and MacOS), please test if it works on Winodws. On Linux, there is another issue - sub-menu items still in dark theme when NotepadNext sets to dark mode, e.g Languates > J > Java|JavaScript|JSON, sub-menu items Java|JavaScript|JSON is still in light theme. On issue on MacOS. Please test if this issue exists on Windows. |
…ord/instruction/operator colors dark mode friendly
Also, I have fixed Lua language scripts for dark mode, keywords of most of languages are dark mode friendly now (light foreground color). |
… mode colors Lua variable name refactoring
@dail8859, Also, I have done my best to fix all of the issues I found in dark mode. Possibly there are other issues/regression, will fix if any found regression tests. |
Pickup tabs enhancement fix.
any update? |
Bump! |
Any progress? |
Will find some time to merge the latest main stream branch to my forked branch. |
Does this work on mac? I can't find where to activate dark mode The title bar is dark, but the screen is white still. Thank you |
I have implemented dark mode, both UI, editors and languages (Lua configuration).
Dark mode change requires application restart to take effect at the moment, will try to do enhancement without application bounce in the future.
Tested on Linux ARM64 and MacOS ARM64, haven't tested it on Windows.