Posts

Showing posts from February, 2018

Visual Studio themes: VsBrushes color values

If you are writing a Visual Studio extension (VSIX), you would like to use the brushes according to the currently set Visual Studio theme. Here is a list of the colors for the different VS themes: (a brush with one color is a SolidColorBrush, a brush with several colors is a LinearGradientBrush where the colors for the GradientStops are listed) Blue Theme Dark Theme Light Theme These theme brushes have been extracted from  Microsoft.VisualStudio.Shell.14.0 , but there only minor changes for 15.0. The brush keys are defined in the class  Microsoft.VisualStudio.Shell. VsBrushes  of the assembly  Microsoft.VisualStudio.Shell.15.0 , (Version 15.0 is included in  VS 2017 and later - for VS 2015, you can use 14.0). The theme brushes can be applied to controls like this: These are mostly command bar brushes, which can be use for buttons, too. Unfortunately, there are almost no buttons in VS to be found which are styled according to the current theme - e.g. the Options dialog is not styled