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
Dark mode "windows mode" and defaults options #12466
Dark mode "windows mode" and defaults options #12466
Conversation
Such switch can't be add directly in |
@ArkadiuszMichalski I want to rework this PR so Notepad++ use setting file with advanced option for dark mode: disabling dark mode support for plugin globally, which theme and icons to set when toggling dark mode, and maybe more. I've thought I've got some free time, but urgent IRL stuff came instead. I will close this PR for now. |
Had some time to do rework. |
@ozone10 This option |
@ozone10 |
@ArkadiuszMichalski @donho I can move them to main config later. Currently it makes testing easier. |
Ok, for default theme empty "" works fine, but any wrong name do nothing. |
You are right I forgot that I did not commit that. But now I see this might be better (less code). btw about tab icons did you mean allow icon set with floppy disk to be used in dark mode. I don't think dark set should be used in light mode. |
Yes, if my actual icon set is floppy then don't change them as |
872ff24
to
f382730
Compare
@ArkadiuszMichalski Next time (week?) I will try to implement setting for tab background and text colors, use colors from style configurator (currently default in light mode) or use default ones (currently background in dark mode, text color is "inverted") |
96761f4
to
f0a2272
Compare
f0a2272
to
0194fa8
Compare
@donho Also some issue with portability because of absolute path for theme.
|
080073f
to
427af8f
Compare
Closing and reopening to force appveyor to cancel all previous commit build and start with latest. |
bd7d74f
to
6a207db
Compare
Amazing! Thank you for your help @ozone10 ! It seems all work perfectly now. The only hidden option are 2 tabUseTheme - the default values The PR is ready to merge into master if you don't see any other things. |
@donho and maybe change to OS mode immediately after selecting "Follow Windows" option in preference |
@ozone10 |
after moving to main config not anymore, I just haven't remove it from OP yet, will do now |
@donho and mainly, theme is still not forced on start Maybe it would be better to load theme in |
@ozone10 |
I will check code later when I get time and might do small adjustments in another PR. |
@ozone10 |
@ArkadiuszMichalski |
Add additional options to dark mode
enableWindowsMode
– values"no"
and"yes"
enableWindowsMode="yes"
will enable "Windows mode", dark mode depends on OS, supported only on Windows 10 and laterdarkThemeName
,lightThemeName
"filename of theme"
""
– for default theme in respective modedarkThemeName="DarkModeDefault.xml"
,lightThemeName=""
darkToolBarIconSet
,lightToolBarIconSet
"0"
– Fluent small"1"
– Fluent big"2"
– Fluent small filled"3"
– Fluent big filled"4"
– StandarddarkToolBarIconSet="0"
,lightToolBarIconSet="4"
darkTabIconSet
,lightTabIconSet
"0"
– Standard (floppy disk)"1"
– Alternate"2"
– DarkdarkTabIconSet="2"
,lightTabIconSet="0"
darkTabUseTheme
,lightTabUseTheme
- currently hidden option"no"
– don't use theme"yes"
– use theme colors for active tab text, inactive tab background and inactive tab textdarkTabUseTheme="no"
,lightTabUseTheme="yes"
example (relevant part in
confix.xml
):closes #9183
closes #9992
closes #10153
closes #10239
closes #10544
closes #10644
closes #11867
closes #10239
closes #12427