Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1560

Help: Rainmeter Skins • Re: Windows color mode variable (dark/light)

$
0
0
This might be of some interest...

https://forum.rainmeter.net/viewtopic.php?t=14202&hilit=syscolor#p80787

You might also check the registry at:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize

https://docs.rainmeter.net/manual/measures/registry/

and look for the keys:

AppsUseLightTheme
SystemUsesLightTheme

Which will return 0 or 1, and correspond to this in Settings:

1.jpg

Code:

[Measure_Windows_Theme]Measure=RegistryRegHKey=HKEY_CURRENT_USERRegKey=Software\Microsoft\Windows\CurrentVersion\Themes\PersonalizeRegValue=SystemUsesLightThemeDynamicVariables=1IfConditionMode=1IfCondition=Measure_Windows_Theme = 1IfTrueAction=[!SetVariable "Color_TXT" "191919"][!SetVariable "Color_Mode" "Light"]IfFalseAction=[!SetVariable "Color_TXT" "fefefe"][!SetVariable "Color_Mode" "Dark"]
Based on this I wrote something like this and it works, when changing the theme the variables change, thank you!

I could only ask if checking this registry key every 1 second is resource heavy for the system? Because if I set UpdateDivider=-1 so that it doesn't check it like other measures I have to do !Refresh but I don't know what would trigger it :???:

Statistics: Posted by anon2349129 — Today, 4:26 pm



Viewing all articles
Browse latest Browse all 1560

Trending Articles