7-Zip-zstd icon indicating copy to clipboard operation
7-Zip-zstd copied to clipboard

Add dark mode support

Open ozone10 opened this issue 1 month ago • 5 comments

fix #134

ozone10 avatar Nov 30 '25 17:11 ozone10

Thx for the PR!

I have few questions about it:

  1. is exe built with that supposed for dark mode only (or can it automatically and/or per setting switch to light mode)?
  2. if it is for dark mode only, can we make it optional at runtime or at build phase?
  3. can we probably rewrite parts of folder DarkMode as a submodule to darkmodelib repository (or forked darkmodelib here)? Just in order to "simplify" the codebase a bit.

sebres avatar Dec 01 '25 16:12 sebres

1. is exe built with that supposed for dark mode only (or can it automatically and/or per setting switch to light mode)? 2. if it is for dark mode only, can we make it optional at runtime or at build phase?

By default "classic" color mode is used (current appearance without this PR). Users have basic option to change color mode in settings image

or they can use advanced config 7zDark.ini as described here

3. can we probably rewrite parts of folder DarkMode as a submodule to darkmodelib repository (or forked darkmodelib here)? Just in order to "simplify" the codebase a bit.

Yes that would be better. I didn't extensively check how are include and source paths defined in 7z build files. so I simple moved DarkModeSubclass.h to src folder with all other files. Then I've used 7zDark.mak and 7zDarkObj.mak.

Also StdAfx.h has specific changes for 7z.

ozone10 avatar Dec 01 '25 17:12 ozone10

If your patch can use the system style - this should be the default. Do you think that everything works and is stable?

mcmilk avatar Dec 06 '25 20:12 mcmilk

If your patch can use the system style - this should be the default.

Ok

Do you think that everything works and is stable?

I am using for more then 1 year my fork https://github.com/ozone10/7zip-Dark7zip without major issue. Dark mode is achieved via darkmodlib library which is based on code from Notepad++ and it is very stable.

ozone10 avatar Dec 07 '25 10:12 ozone10

@ozone10 Wow - I am waiting for this - thx!

isarrider avatar Dec 13 '25 11:12 isarrider

Maybe this calls for a new release ;)

isarrider avatar Dec 13 '25 12:12 isarrider

@mcmilk Wohoo and thx!

isarrider avatar Dec 15 '25 13:12 isarrider