Restore hover effects for Print button
- RemovePrimaryActionStyle should restore expected HoverColor - Issue MatterHackers/MCCentral#5093 Inconsistent hover effects
This commit is contained in:
parent
75f33b3499
commit
56b91f2ab1
1 changed files with 5 additions and 5 deletions
|
|
@ -98,16 +98,16 @@ namespace MatterHackers.MatterControl
|
|||
{
|
||||
guiWidget.BackgroundColor = Color.Transparent;
|
||||
|
||||
// Buttons in toolbars should revert to ToolbarButtonHover when reset
|
||||
bool parentIsToolbar = guiWidget.Parent?.Parent is Toolbar;
|
||||
|
||||
switch (guiWidget)
|
||||
{
|
||||
case PopupMenuButton menuButton:
|
||||
menuButton.HoverColor = Color.Transparent;
|
||||
break;
|
||||
case SimpleFlowButton flowButton:
|
||||
flowButton.HoverColor = Color.Transparent;
|
||||
flowButton.HoverColor = (parentIsToolbar) ? this.ToolbarButtonHover : Color.Transparent;
|
||||
break;
|
||||
case SimpleButton button:
|
||||
button.HoverColor = Color.Transparent;
|
||||
button.HoverColor = (parentIsToolbar) ? this.ToolbarButtonHover : Color.Transparent;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue