Add SectionBackgroundColor for theme control of SectionWidgets
This commit is contained in:
parent
e4c6ba9507
commit
d50672d2fc
3 changed files with 8 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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"),
|
||||
|
|
|
|||
|
|
@ -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"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue