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

Windows is not respecting theme change. #33

Closed
bigplayer-ai opened this issue Feb 19, 2023 · 1 comment
Closed

Windows is not respecting theme change. #33

bigplayer-ai opened this issue Feb 19, 2023 · 1 comment

Comments

@bigplayer-ai
Copy link

bigplayer-ai commented Feb 19, 2023

Hey,
There is an issue with multiple people that windows does not respect theme change.
As shown in here:
t1m0thyj/WinDynamicDesktop#427
t1m0thyj/WinDynamicDesktop#463
t1m0thyj/WinDynamicDesktop#480
t1m0thyj/WinDynamicDesktop#493
Windows is not respecting theme change

I have the same issue using Windows 11 22H2 build 22621.1265.
I think the font color and other system parameters must be called after changing the registry.
Furthermore, I think this is more related to WDD scripts than WDD itself. This issue is more about the System Theme switch/Application Theme switch.
Check my mouse script, How I called system parameters to update the new mouse value.

$CSharpSig = @’
[DllImport("user32.dll", EntryPoint = "SystemParametersInfo")]
public static extern bool SystemParametersInfo(
             uint uiAction,
             uint uiParam,
             uint pvParam,
             uint fWinIni);
‘@
$CursorRefresh = Add-Type -MemberDefinition $CSharpSig -Name WinAPICall -Namespace SystemParamInfo –PassThru
$CursorRefresh::SystemParametersInfo(0x0057,0,$null,0)

Pull request for the mouse script:
#31
Mouse script where I called system parameters to update their mouse values:
https://github.com/t1m0thyj/WDD-scripts/blob/a0994e51bab41a0baeb568fa77ef0c4664958909/ChangeMouseScheme.ps1

You just need to know which API needs to be called to update these values. Maybe use Process Monitor v3.92?

@t1m0thyj
Copy link
Owner

Closing as duplicate of #21 and t1m0thyj/WinDynamicDesktop#427

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants