Remove redundant progress bar on expanded progress widget
- Issue MatterHackers/MCCentral#5180
This commit is contained in:
parent
1862cadc99
commit
dc626641c4
1 changed files with 2 additions and 0 deletions
|
|
@ -82,6 +82,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
FillColor = theme.PrimaryAccentColor,
|
||||
BorderColor = Color.Transparent,
|
||||
Margin = new BorderDouble(32, 7, theme.ButtonHeight * 2 + 14, 0),
|
||||
Visible = !taskDetails.IsExpanded
|
||||
};
|
||||
rowContainer.AddChild(progressBar);
|
||||
|
||||
|
|
@ -211,6 +212,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
expandButton.Checked = isExpanded;
|
||||
progressBar.FillColor = isExpanded ? theme.Shade : theme.PrimaryAccentColor;
|
||||
detailsPanel.Visible = isExpanded;
|
||||
progressBar.Visible = !isExpanded;
|
||||
}
|
||||
|
||||
public override void OnClosed(EventArgs e)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue