Skip to content
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

No Darkmode #1

Open
modz2014 opened this issue Sep 1, 2023 · 9 comments
Open

No Darkmode #1

modz2014 opened this issue Sep 1, 2023 · 9 comments

Comments

@modz2014
Copy link

modz2014 commented Sep 1, 2023

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
Copy link
Owner

ChGen commented Sep 1, 2023

@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
Copy link
Author

modz2014 commented Sep 1, 2023

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
Copy link
Owner

ChGen commented Sep 1, 2023

@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
Copy link
Author

modz2014 commented Sep 1, 2023

well nothing happens

@ChGen
Copy link
Owner

ChGen commented Sep 1, 2023

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

@modz2014
Copy link
Author

modz2014 commented Sep 1, 2023

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

@ChGen
Copy link
Owner

ChGen commented Sep 1, 2023

@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
Copy link
Owner

ChGen commented Sep 1, 2023

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

@modz2014
Copy link
Author

modz2014 commented Sep 1, 2023

ok cool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants