How to get color themes for windows?

I would like to have a way to get the theme color of Windows theme users with WPF or C # code. And with this color, I mean the one that can be set in the "Personalization \ Color and Appearance Window" setting under Windows 7 (and it looks like Vista, too). I want to use this color to make the gradient in much the same way as Trillian 5 does. enter image description here

I tried to find it myself, but, unfortunately, I will not go anywhere. Apparently this is not under SystemColors.Whatever . I found something on MSDN , but I can’t figure out how to use it, and I don’t think I want to.

If anyone could help me, I would appreciate it.

+4
source share
2 answers

I think that DwmGetColorizationColor ( http://msdn.microsoft.com/en-us/library/aa969513.aspx ) is what you are looking for; you will need P / Invoke.

+5
source

The theme you see on Windows is based on Glass < . You must use the glass in your application to get the same effect.

0
source

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


All Articles