Themes of S# graphic components

All S# graphic components come in two themes - the light one and the dark one. The theme is set once, at the application level, and all the components pick it up at once: the colors are taken from resources rather than written into every control.

The light theme:

API GUI Thems 01

The dark theme:

API GUI Thems 02

One line is enough to set the theme:

...
ThemeExtensions.ApplyDefaultTheme();
...

Main methods of ThemeExtensions

Changing the theme takes effect immediately: the application does not need to be restarted, all the open panels and charts are redrawn in the new colors.

The colors specific to the trading components - rise and fall, buy and sell, order book levels, the grid lines of the tables - live in a separate set of resources and change together with the theme. That is why your own control that takes its colors from that set instead of setting them itself will look equally at home in both themes.