erickutcher / httpdownloader

HTTP(S) download manager that uses input/output completion ports (IOCP).
https://erickutcher.github.io/#HTTP_Downloader
558 stars 62 forks source link

Support for Dark mode #168

Closed uDEV2019 closed 3 years ago

uDEV2019 commented 3 years ago

It would be great if you could add a dark mode on schedule

erickutcher commented 3 years ago

The dark mode API that Windows uses for certain window elements is undocumented. I'd be happy to implement something when it's fully supported. If I were to implement anything now, it would be a hidden option that's turned on through a command-line switch.

uDEV2019 commented 3 years ago

For the future it will be for sure a nice enhancement.

Don't know if this helps: https://github.com/ysc3839/win32-darkmode

erickutcher commented 3 years ago

Yeah that's basically the only documentation on it, but it's very limited in terms of what gets set.

Here's a work in progress:

darkmode

uDEV2019 commented 3 years ago

👍

For me it's not mandatory that you continue with it immediately.

erickutcher commented 3 years ago

Here's some more progress. I can't figure out a good way to change the white line below the menu bar. Other than that, the main window is pretty much complete.

darkmode2

uDEV2019 commented 3 years ago

Personally i don't use the toolbar and disabled it, but i think if it is disabled the white line appears directly ofter the grey line over columns.

erickutcher commented 3 years ago

I've released a regular build and a dark mode build.

The dark mode build can enable dark mode with a file called "dark_mode" in the same folder as the program. It works similarly to the "portable" file.

32-bit: https://github.com/erickutcher/httpdownloader/releases/download/v1.0.4.4/HTTP_Downloader_DM_32.zip 64-bit: https://github.com/erickutcher/httpdownloader/releases/download/v1.0.4.4/HTTP_Downloader_DM_64.zip

Dark mode will only work on Windows 10 and 11.

uDEV2019 commented 3 years ago

looks quite good. well done 👍 🍺