in sources/Google.Solutions.IapDesktop.Application/Theme/VSTheme.cs [107:210]
public VSColorPalette(XDocument xml) : base(xml)
{
this.ToolWindowInnerTabInactive = new ToolWindowInnerTabPalette()
{
Background = GetColor(xml, "CommonControls", "InnerTabInactiveBackground", "Background"),
Text = GetColor(xml, "CommonControls", "InnerTabInactiveText", "Background"),
};
this.GridHeading = new GridHeadingPallette()
{
Background = GetColor(xml, "Environment", "ToolWindowContentGrid", "Background"),
Text = GetColor(xml, "Environment", "GridHeadingText", "Background")
};
this.Window = new WindowPallette()
{
Background = GetColor(xml, "Environment", "Window", "Background"),
Frame = GetColor(xml, "Environment", "WindowFrame", "Background"),
Text = GetColor(xml, "Environment", "WindowText", "Background")
};
this.Button = new ButtonPallette()
{
Background = GetColor(xml, "CommonControls", "Button", "Background"),
Text = GetColor(xml, "CommonControls", "Button", "Foreground"),
Border = GetColor(xml, "CommonControls", "ButtonBorder", "Background"),
BorderFocused = GetColor(xml, "CommonControls", "ButtonBorderFocused", "Background"),
BorderHover = GetColor(xml, "CommonControls", "ButtonBorderHover", "Background"),
BackgroundHover = GetColor(xml, "CommonControls", "ButtonHover", "Background"),
BackgroundPressed = GetColor(xml, "CommonControls", "ButtonPressed", "Background"),
DropDownGlyphColor = GetColor(xml, "CommonControls", "ComboBoxGlyph", "Background"),
DropDownGlyphDisabledColor = GetColor(xml, "CommonControls", "ComboBoxGlyphDisabled", "Background"),
};
this.Label = new LabelPalette()
{
Text = GetColor(xml, "Environment", "CaptionText", "Background"),
};
this.LinkLabel = new LabelPalette()
{
Text = GetColor(xml, "Environment", "ControlLinkText", "Background"),
};
this.HeaderLabel = new LabelPalette()
{
Text = GetColor(xml, "Environment", "BrandedUITitle", "Background"),
};
this.TextBox = new TextBoxPalette()
{
Text = GetColor(xml, "CommonControls", "TextBoxText", "Background"),
Background = GetColor(xml, "CommonControls", "TextBoxBackground", "Background"),
BackgroundDisabled = GetColor(xml, "CommonControls", "TextBoxBackgroundDisabled", "Background"),
Border = GetColor(xml, "CommonControls", "TextBoxBorder", "Background"),
BorderFocused = GetColor(xml, "CommonControls", "TextBoxBorderFocused", "Background"),
BorderHover = GetColor(xml, "CommonControls", "ButtonBorderHover", "Background"),
};
this.ComboBox = new ComboBoxPalette()
{
Text = GetColor(xml, "CommonControls", "TextBoxText", "Background"),
Background = GetColor(xml, "CommonControls", "ComboBoxBackground", "Background"),
};
this.ProgressBar = new ProgressBarPalette()
{
Background = GetColor(xml, "ProgressBar", "Background", "Background"),
Indicator = GetColor(xml, "ProgressBar", "IndicatorFill", "Background"),
};
this.TabControl = new TabControlPalette()
{
TabBackground = GetColor(xml, "ProjectDesigner", "CategoryTab", "Background"),
TabText = GetColor(xml, "ProjectDesigner", "CategoryTab", "Foreground"),
SelectedTabBackground = GetColor(xml, "ProjectDesigner", "SelectedCategoryTab", "Background"),
SelectedTabText = GetColor(xml, "ProjectDesigner", "SelectedCategoryTab", "Foreground"),
MouseOverTabBackground = GetColor(xml, "ProjectDesigner", "MouseOverCategoryTab", "Background"),
MouseOverTabText = GetColor(xml, "ProjectDesigner", "MouseOverCategoryTab", "Foreground"),
};
this.TabSelectedActiveAccent1 = new TabPalette()
{
Background = GetColor(xml, "Environment", "VizSurfaceDarkGoldDark", "Background"),
Text = this.TabSelectedActive.Text,
Button = this.TabSelectedActive.Button
};
this.TabSelectedActiveAccent2 = new TabPalette()
{
Background = GetColor(xml, "Environment", "VizSurfacePlumDark", "Background"),
Text = this.TabSelectedActive.Text,
Button = this.TabSelectedActive.Button
};
this.TabSelectedActiveAccent3 = new TabPalette()
{
Background = GetColor(xml, "Environment", "VizSurfaceGreenDark", "Background"),
Text = this.TabSelectedActive.Text,
Button = this.TabSelectedActive.Button
};
this.TabSelectedActiveAccent4 = new TabPalette()
{
Background = GetColor(xml, "Environment", "VizSurfaceBrownDark", "Background"),
Text = this.TabSelectedActive.Text,
Button = this.TabSelectedActive.Button
};
this.CommandBarMenuTopLevelHeaderHovered.Border
= GetColor(xml, "Environment", "CommandBarMenuItemMouseOverBorder", "Background");
this.StatusBar = new StatusBarPallette()
{
InactiveBackground = GetColor(xml, "Environment", "StatusBarDefault", "Background"),
InactiveText = GetColor(xml, "Environment", "StatusBarDefault", "Foreground"),
ActiveBackground = GetColor(xml, "Environment", "StatusBarDebugging", "Background"),
ActiveText = GetColor(xml, "Environment", "StatusBarDebugging", "Foreground"),
};
}