Revise GetThemedEditButton for reuse, rewrite to adjust alpha vs hsl
- Rename GetThemedEditButton to GenerateIconButton - Extract hard-coded icon to callers and add ImageBuffer parameter - Prevent washed out whites in mixed color images by adjusting alpha - Reuse new GenerateIconButton helper for Undo/Redo buttons
This commit is contained in:
parent
7baeaa9cc5
commit
85518a3954
4 changed files with 19 additions and 23 deletions
|
|
@ -89,8 +89,8 @@ namespace MatterHackers.MatterControl.ConfigurationPage
|
|||
};
|
||||
buttonRow.AddChild(printLevelingStatusLabel);
|
||||
|
||||
// edit button
|
||||
Button editButton = TextImageButtonFactory.GetThemedEditButton();
|
||||
// edit
|
||||
Button editButton = buttonFactory.GenerateIconButton(StaticData.Instance.LoadIcon("icon_edit.png", 16, 16));
|
||||
editButton.Margin = new BorderDouble(2, 2, 2, 0);
|
||||
editButton.VAnchor = VAnchor.Top;
|
||||
editButton.VAnchor = VAnchor.Center;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue