Made 'Open', 'Save' and 'Bed' more intuitive
Added more sliders Fixed issue with load progress indicator not clearing Made value display update for more sliders
This commit is contained in:
parent
2077cf7987
commit
a238c8c4b0
14 changed files with 73 additions and 61 deletions
|
|
@ -549,6 +549,7 @@ namespace MatterHackers.MatterControl
|
|||
Name = buttonParams.ButtonName,
|
||||
Enabled = buttonParams.ButtonEnabled,
|
||||
ToolTipText = buttonParams.ButtonTooltip,
|
||||
Padding = new BorderDouble(5, 0, 5, 0)
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
@ -578,14 +579,11 @@ namespace MatterHackers.MatterControl
|
|||
};
|
||||
|
||||
menuButton.Name = buttonParams.ButtonName + " Menu SplitButton";
|
||||
if (buttonParams.ButtonText == null)
|
||||
menuButton.BackgroundColor = buttonParams.BackgroundColor;
|
||||
if (menuButton.BackgroundColor == Color.Transparent)
|
||||
{
|
||||
menuButton.BackgroundColor = this.ToolbarButtonBackground;
|
||||
}
|
||||
else
|
||||
{
|
||||
menuButton.BackgroundColor = this.MinimalShade;
|
||||
}
|
||||
|
||||
menuButton.HoverColor = this.ToolbarButtonHover;
|
||||
menuButton.MouseDownColor = this.ToolbarButtonDown;
|
||||
|
|
@ -768,5 +766,7 @@ namespace MatterHackers.MatterControl
|
|||
public Action<PopupMenu> ExtendPopupMenu { get; set; }
|
||||
|
||||
public string ButtonText { get; set; }
|
||||
|
||||
public Color BackgroundColor { get; set; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue