{"id":20912907,"url":"https://github.com/chgen/darkenforcer","last_synced_at":"2025-04-11T08:35:24.281Z","repository":{"id":134711368,"uuid":"520587785","full_name":"ChGen/DarkEnforcer","owner":"ChGen","description":"Win32 Dark Mode enforcer","archived":false,"fork":false,"pushed_at":"2023-09-05T05:46:35.000Z","size":174,"stargazers_count":25,"open_issues_count":2,"forks_count":3,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-25T06:06:28.650Z","etag":null,"topics":["dark-mode","win32","win32-api","windows"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ChGen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-02T17:21:07.000Z","updated_at":"2025-03-13T09:43:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"c0b6b045-40bb-454a-bb1d-a10a7b93942c","html_url":"https://github.com/ChGen/DarkEnforcer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChGen%2FDarkEnforcer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChGen%2FDarkEnforcer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChGen%2FDarkEnforcer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChGen%2FDarkEnforcer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChGen","download_url":"https://codeload.github.com/ChGen/DarkEnforcer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248361784,"owners_count":21090982,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dark-mode","win32","win32-api","windows"],"created_at":"2024-11-18T14:34:01.992Z","updated_at":"2025-04-11T08:35:24.252Z","avatar_url":"https://github.com/ChGen.png","language":"C++","readme":"# DarkEnforcer\nWin32 Dark Mode enforcer\n\nFor stable use, see [Dark titlebars enforcing app](https://github.com/ChGen/DarkTitle)\n\n 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.\n\nFor undocumented APIs and structures, credits to: [ysc3839/win32-darkmod](https://github.com/ysc3839/win32-darkmode/blob/master/win32-darkmode/DarkMode.h), [rounk-ctrl gist](https://gist.github.com/rounk-ctrl/b04e5622e30e0d62956870d5c22b7017), [npp work](https://github.com/notepad-plus-plus/notepad-plus-plus/labels/dark%20mode\n).\n\nHow to try:\n1) Prepare MS VS2022, Windows 11 22H2 amd64.\n2) Open `.sln` file with Visual Studio, build in Debug mode.\n3) Switch to Windows 11 Dark theme. Note, that standard `cleanmgr.exe` isn't dark.\n4) Before running DarkEnforcer, save important files, since it will inject `dll` to all processes and something may crash.\n5) 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.\n6) Run standard `cleanmgr.exe` without extra elevation/admin rights. You should see that it's mostly dark now.\n7) When you finished, kill DarkEnforcer process.\n\n 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:\n \n ![Origincal disk cleanup](screenshots/cleanmgr-orig.png) \n ![Dark disk cleanup](screenshots/cleanmgr-dark.png)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchgen%2Fdarkenforcer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchgen%2Fdarkenforcer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchgen%2Fdarkenforcer/lists"}