Convert public property editor to use SettingsRow
- Ensure consistent styling across panels
This commit is contained in:
parent
c02909b604
commit
8c3de11a9f
3 changed files with 18 additions and 19 deletions
|
|
@ -524,9 +524,15 @@ namespace MatterHackers.MatterControl
|
|||
return solidSlider;
|
||||
}
|
||||
|
||||
// ApplySquareBoxStyle
|
||||
public SectionWidget ApplyBoxStyle(SectionWidget sectionWidget, BorderDouble margin)
|
||||
{
|
||||
return ApplyBoxStyle(sectionWidget, this.SectionBackgroundColor, margin);
|
||||
sectionWidget.BackgroundColor = this.SectionBackgroundColor;
|
||||
sectionWidget.Margin = 0;
|
||||
sectionWidget.Border = new BorderDouble(bottom: 1);
|
||||
sectionWidget.BorderColor = this.RowBorder;
|
||||
|
||||
return sectionWidget;
|
||||
}
|
||||
|
||||
public SectionWidget ApplyBoxStyle(SectionWidget sectionWidget, Color backgroundColor, BorderDouble margin)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue