Use dedicated theme for menus, prefer theme colors over explicit refs
- Revise icon loader to take an Invert bool instead of custom enum - Remove icon loader static ref to ActiveTheme.Instance - Pass contextual theme.InvertIcons for theme specific invert behavior
This commit is contained in:
parent
d3ef1d354e
commit
37a0b64b02
54 changed files with 231 additions and 241 deletions
|
|
@ -66,7 +66,7 @@ namespace MatterHackers.MatterControl.CustomWidgets
|
|||
this.ActionArea.VAnchor = VAnchor.Stretch;
|
||||
this.ActionArea.MinimumSize = new Vector2(0, titleText.Height);
|
||||
|
||||
saveButton = new IconButton(AggContext.StaticData.LoadIcon("fa-save_16.png", 16, 16, IconColor.Theme), theme)
|
||||
saveButton = new IconButton(AggContext.StaticData.LoadIcon("fa-save_16.png", 16, 16, theme.InvertIcons), theme)
|
||||
{
|
||||
ToolTipText = "Save".Localize(),
|
||||
Visible = false,
|
||||
|
|
@ -97,7 +97,7 @@ namespace MatterHackers.MatterControl.CustomWidgets
|
|||
|
||||
var rightPanel = new FlowLayoutWidget();
|
||||
|
||||
editButton = new IconButton(AggContext.StaticData.LoadIcon("icon_edit.png", 16, 16, IconColor.Theme), theme)
|
||||
editButton = new IconButton(AggContext.StaticData.LoadIcon("icon_edit.png", 16, 16, theme.InvertIcons), theme)
|
||||
{
|
||||
ToolTipText = "Edit".Localize(),
|
||||
Name = automationName + " Edit"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue