Access OSD colors in Windows 8/10

Windows has this small overlay that appears when you change the volume

Windows 10 Volume Overlay

I am implementing a similar notification overlay, and I would like to describe it sequentially with this existing overlay without the magic values ​​of hard coding. Is there a way to access the colors, fonts, fonts and / or positions associated with this?

The music information comes from the Groove Music app, and I'm not sure if this is available for custom applications, but the volume bar is system-wide and I hope I can get some basic information about it.

Neither GetSysColor nor GetThemeSysColor seem to have any colors that match.

+4
source share
1 answer

A music overlay / controller is available for storing applications , perhaps if you put the application in UWP using the Desktop Bridge you may be allowed to use it.

It will not surprise me if the source of these colors is associated with the undocumented GetImmersiveColorFromColorSetEx function in the uxtheme.dll file.

You can see a list of some color names here .

+1
source

Source: https://habr.com/ru/post/1654918/


All Articles