Skip to content

Commit

Permalink
version 1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
rounk-ctrl committed Feb 11, 2022
1 parent 7a15e11 commit 4c64c57
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
/MicaForEveryone/x64/Release
/x64/Release
/MicaForEveryone/MicaForEveryone.vcxproj.user
/MicaForEveryone/MicaForEveryone.aps
/MicaForEveryone/Debug
/x64
/MicaForEveryone.7z
*.aps
2 changes: 1 addition & 1 deletion MicaForEveryone/MicaForEveryone.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
SetPreferredAppMode = (fnSetPreferredAppMode)GetProcAddress(hUxtheme, MAKEINTRESOURCEA(135));
RefreshImmersiveColorPolicyState = reinterpret_cast<fnRefreshImmersiveColorPolicyState>(GetProcAddress(hUxtheme, MAKEINTRESOURCEA(104)));
AllowDarkModeForWindow = reinterpret_cast<fnAllowDarkModeForWindow>(GetProcAddress(hUxtheme, MAKEINTRESOURCEA(133)));
FreeLibrary(hUxtheme);
DarkThemeEnabled = IsExplorerDarkTheme();
if (DarkThemeEnabled)
{
Expand Down Expand Up @@ -466,7 +467,6 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
case WM_DESTROY:
if (hEvent)
UnhookWinEvent(hEvent);
FreeLibrary(hUxtheme);
PostQuitMessage(0);
break;
default:
Expand Down
Binary file modified MicaForEveryone/MicaForEveryone.rc
Binary file not shown.

0 comments on commit 4c64c57

Please sign in to comment.