Convert public property editor to use SettingsRow

- Ensure consistent styling across panels
This commit is contained in:
John Lewin 2019-05-24 09:17:02 -07:00 committed by jlewin
parent c02909b604
commit 8c3de11a9f
3 changed files with 18 additions and 19 deletions

View file

@ -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)