Giter VIP home page Giter VIP logo

darkenforcer's Introduction

DarkEnforcer

Win32 Dark Mode enforcer

For stable use, see Dark titlebars enforcing app

This projects demonstrates forcing native Win32 apps to Dark mode. This requires a lot of work to be stable and universal, so its still a prototype. This is done by combination fo Win32 global hooks, Win32 Controls subclassing and some UXtheme API and also few other things, including undocumented APIs.

For undocumented APIs and structures, credits to: ysc3839/win32-darkmod, rounk-ctrl gist, npp work.

How to try:

  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 dark now.
  7. When you finished, kill DarkEnforcer process.

Screenshots for MS Windows 11 22H2 cleanmgr.exe, which doesn't support dark mode out-of-the box and was put in dark by the project:

Origincal disk cleanup Dark disk cleanup

darkenforcer's People

Contributors

chgen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.