ChGen / DarkEnforcer

Win32 Dark Mode enforcer
MIT License
20 stars 3 forks source link

No Darkmode #1

Open modz2014 opened 1 year ago

modz2014 commented 1 year ago

hi i just tried your example and it does not work also the screen shot you have how did you make it dark mode

ChGen commented 1 year ago

@modz2014 , follow this steps: 1) Prepare MS VS2022, Windows 11 22H2 amd64. 2) Open .sln file with Visual Studio, build in Debug mode. 3) Switch to Windows 11 Dark theme. Note, that standard cleanmgr.exe isn't dark. 4) Before running DarkEnforcer, save important files, since it will inject dll to all processes and something may crash. 5) Run DarkEnforcer via Visual Studio (without extra elevation/admin rights). It won't show any window, probably. You will see new running process in Task Manager. 6) Run standard cleanmgr.exe without extra elevation/admin rights. You should see that it's mostly black now. 7) When you finished, kill DarkEnforcer process.

modz2014 commented 1 year ago

can we make this a dynamic library so it application can use it or also i ran your app and click on my button nothing happens

ChGen commented 1 year ago

@modz2014 , that button probably does nothing. dll is injected on DarkEnforcer start. All 'dark' logic is in the dll and could be reused. So its already in dynamic library.

modz2014 commented 1 year ago

well nothing happens

ChGen commented 1 year ago

@modz2014 , so you switched to dark mode, DarkEnforcer process is running and when you run cleanmgr (without Admin) it is not black?

modz2014 commented 1 year ago

yes i have fixed something also the black is way to dark

ChGen commented 1 year ago

@modz2014 , I've found some uncommitted lines, so I pushed them. Try to kill process, pull changes and rebuild solution. Then follow instructions above - it still works for me.

ChGen commented 1 year ago

About theming yes, some frames are still missing, and some shades may be not the perfect match.

modz2014 commented 1 year ago

ok cool