Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get Modern UI theme colour manually

is there any way to find out the current theme color set for the Modern UI? A WinAPI function or registry value would be the best possible solution for me.

By current theme color i mean this.

like image 239
Zwirbelbart Avatar asked Dec 12 '25 10:12

Zwirbelbart


1 Answers

There's a private function called GetImmersiveUserColorSetPreference in UxTheme.dll. If you set the first parameter to true, it should use the value from the registry that GameScripting mentioned (and notify the system of the change).

I wrote about retrieving immersive/modern/metro colours here. Keep in mind that you won't be able to use these undocumented functions in WinRT Windows Store Apps, since they'll fail certification.

like image 126
Quppa Avatar answered Dec 15 '25 13:12

Quppa



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!