Use MenuTheme for menu children
- Issue MatterHackers/MCCentral#4466 Wrong theme colors - use MenuTheme
This commit is contained in:
parent
33c1b85bcf
commit
a6e1b025c4
1 changed files with 5 additions and 2 deletions
|
|
@ -102,7 +102,10 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
optionsPanel.AddChild(row);
|
||||
}
|
||||
|
||||
var subPanel = new FlowLayoutWidget(FlowDirection.TopToBottom);
|
||||
var subPanel = new FlowLayoutWidget(FlowDirection.TopToBottom)
|
||||
{
|
||||
Margin = new BorderDouble(2, 0)
|
||||
};
|
||||
|
||||
var sectionWidget = new SectionWidget("Advanced", subPanel, menuTheme, expanded: true)
|
||||
{
|
||||
|
|
@ -134,7 +137,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
allUiFields));
|
||||
}
|
||||
|
||||
theme.ApplyBoxStyle(sectionWidget);
|
||||
menuTheme.ApplyBoxStyle(sectionWidget);
|
||||
|
||||
sectionWidget.Margin = new BorderDouble(0, 10);
|
||||
sectionWidget.ContentPanel.Children<SettingsRow>().First().Border = new BorderDouble(0, 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue