Where and how do I see various SystemColors in different topics?

We are developing a winforms application and in order to match its appearance with a system theme, we are trying to limit ourselves to colors in the SystemColors class. However, it is sometimes difficult to choose the right colors without knowing what color they correspond in different topics. I can see the palette for the current theme in Visual Studio, but are there any palettes anywhere at once? Ideally, I would like the table to display colors for each of the classic, XP (Blue, Olive, Silver, Royale) and Vista.

+4
source share
1 answer

I don’t know how to set the color palette, but if that helps, you can check which color scheme is active through System.Windows.Forms.VisualStyles:

 if(VisualStyleInformation.ColorScheme == "NormalColor") { // blue color scheme } else if(VisualStyleInformation.ColorScheme == "HomeStead") { //olive green } else if (VisualStyleInformation.ColorScheme == "Metallic") { //silver } 
0
source

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


All Articles