Add SectionBackgroundColor for theme control of SectionWidgets

This commit is contained in:
John Lewin 2018-10-17 20:34:10 -07:00
parent e4c6ba9507
commit d50672d2fc
3 changed files with 8 additions and 2 deletions

View file

@ -202,6 +202,7 @@ namespace MatterHackers.MatterControl
public Color SplashAccentColor { get; set; }
public Color BedBackgroundColor { get; set; }
public Color PrimaryAccentColor { get; set; }
public Color SectionBackgroundColor { get; set; }
public GuiWidget CreateSearchButton()
{
@ -481,13 +482,13 @@ namespace MatterHackers.MatterControl
{
return ApplyBoxStyle(
sectionWidget,
this.MinimalShade,
this.SectionBackgroundColor,
margin: new BorderDouble(this.DefaultContainerPadding, 0, this.DefaultContainerPadding, this.DefaultContainerPadding));
}
public SectionWidget ApplyBoxStyle(SectionWidget sectionWidget, BorderDouble margin)
{
return ApplyBoxStyle(sectionWidget, this.MinimalShade, margin);
return ApplyBoxStyle(sectionWidget, this.SectionBackgroundColor, margin);
}
public SectionWidget ApplyBoxStyle(SectionWidget sectionWidget, Color backgroundColor, BorderDouble margin)

View file

@ -110,6 +110,8 @@ namespace MatterHackers.MatterControl
DropListFieldBorder = new Color("#282828"),
RowBorder = new Color("#2c2c2c"),
SectionBackgroundColor = new Color("#404040"),
SlightShade = new Color("#00000028"),
MinimalShade = new Color("#0000000F"),
Shade = new Color("#00000078"),

View file

@ -103,6 +103,9 @@ namespace MatterHackers.MatterControl
TextColor = baseColors.Base0
}
},
SectionBackgroundColor = new Color("#002630"),
SlightShade = new Color("#00000028"),
MinimalShade = new Color("#0000000F"),
Shade = new Color("#00000078"),