Skip to content

Commit

Permalink
Not setting ColorPrevalence on dark
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgjackson committed Feb 9, 2024
1 parent f9d18b3 commit 96382af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion toggle.c
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,8 @@ BOOL SetLightDark(DWORD light)
}

// Set the ColorPrevalence key
DWORD colorPrevalence = light ? 0 : 1;
DWORD colorPrevalence = 0; // HACK: Force off for now as we don't know the previous state (TODO: Option to set this value in dark mode)
if (light) colorPrevalence = 0; // Always off in light mode?
lErrorCode = RegSetValueEx(hKey, valueColorPrevalence, 0, REG_DWORD, (const BYTE *)&colorPrevalence, sizeof(colorPrevalence));
if (lErrorCode != ERROR_SUCCESS)
{
Expand Down
2 changes: 1 addition & 1 deletion toggle.rc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ MAINICON ICON "icon.ico"
#define STRINGIZE(x) STRINGIZE_HELPER(x)
#define VER_MAJOR 1
#define VER_MINOR 0
#define VER_BUILD 8 // Patch ('build' in MS version order)
#define VER_BUILD 9 // Patch ('build' in MS version order)
#define VER_REVISION 0 // Build ('revision' in MS version order)
#define VER_STRING STRINGIZE(VER_MAJOR) "." STRINGIZE(VER_MINOR) "." STRINGIZE(VER_BUILD) "." STRINGIZE(VER_REVISION)

Expand Down

0 comments on commit 96382af

Please sign in to comment.