windows: add support for system theme

Use registry
"HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion
/Themes/Personalize/AppsUseLightTheme"
to check if system theme is supported and if it is dark or
light.

Removes "EnableDarkTheme" in favor of "AppTheme".

Requires Windows SDK version 10.0.18362.0 to build with
system theme support.

Note: This does not watch for changes in system theme in
runtime as the support for it requires Windows Runtime
version 10.0.10240.0.

GitLab: #723

Change-Id: Ice8f7936a90535f47dc1870d4f18215e062684ba
This commit is contained in:
Aline Gondim Santos
2022-11-16 16:02:59 -03:00
parent 4b6c4b8a48
commit 956b7f7da5
6 changed files with 90 additions and 27 deletions

View File

@@ -164,7 +164,7 @@ Only 64-bit MSVC build can be compiled.
| | SDK | Toolset | MFC |
| ------------ | ------------ | ------- | ------ |
| Requirement: | 10.0.16299.0 | V142 | latest |
| Requirement: | 10.0.18362.0 | V142 | latest |
- Install Qt Vs Tools under extensions, and configure msvc2017_64 path under Qt Options. _See the Qt notes below._
@@ -200,7 +200,7 @@ Only 64-bit MSVC build can be compiled.
```
> **SDK and Toolset** Note:
> Jami can be build with more rencents Windows SDK and Toolset than the ones specified in the table above. However, if your have another version than SDK 10.0.16299.0 and/or Toolset v142 installed, you need to identify it according to the example below.
> Jami can be build with more recent Windows SDK and Toolset than the ones specified in the table above. However, if your have another version than SDK 10.0.18362.0 and/or Toolset v142 installed, you need to identify it according to the example below. For the SDK, you still need to have the required version in addition to the one you chose.
```bash
python build.py --install --sdk <your-sdk-version> --toolset <your-toolset-version>