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

Sync dark/light theme with Windows 10 #434

Closed
d2phap opened this issue Oct 9, 2018 · 3 comments
Closed

Sync dark/light theme with Windows 10 #434

d2phap opened this issue Oct 9, 2018 · 3 comments

Comments

@d2phap
Copy link
Owner

d2phap commented Oct 9, 2018

Chris:

The latest version of windows has a dark theme, which changes elements such as context menus to be dark, so if I schedule windows to change to the dark theme automatically at night, it wouldn't affect ImageGlass, because all elements are skinned.​

@d2phap
Copy link
Owner Author

d2phap commented Nov 8, 2018

Need to research the message code for WndProc function
https://github.com/d2phap/ImageGlass/blob/master/Source/ImageGlass/frmMain.cs#L2065

@d2phap
Copy link
Owner Author

d2phap commented Apr 21, 2020

The configuration can be queried in the registry's following location:

  • Key: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize
  • Value: AppsUseLightTheme

When the value equals 0 (DWORD), it means it is in dark mode. Altering the value triggers immediately Windows Explorer to go/exit dark mode.

Some resources:

@d2phap
Copy link
Owner Author

d2phap commented Apr 14, 2023

Implemented in v9.0 beta 4.
In igconfig.json file, you can specify the theme for dark and light mode:

{
  "DarkTheme": "Kobe",
  "LightTheme": "Kobe - Light",
}

@d2phap d2phap closed this as completed Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant