Dynamic slider size
This commit is contained in:
parent
bbbf8b714e
commit
8f8e36ac61
2 changed files with 6 additions and 0 deletions
|
|
@ -98,6 +98,7 @@ namespace MatterHackers.MatterControl.PrinterControls
|
|||
feedRateRatioSlider = new SolidSlider(new Vector2(), sliderThumbWidth, minFeedRateRatio, maxFeedRateRatio);
|
||||
feedRateRatioSlider.Margin = new BorderDouble(5, 0);
|
||||
feedRateRatioSlider.Value = PrinterConnectionAndCommunication.Instance.FeedRateRatio;
|
||||
feedRateRatioSlider.HAnchor = HAnchor.ParentLeftRight;
|
||||
feedRateRatioSlider.TotalWidthInPixels = sliderWidth;
|
||||
feedRateRatioSlider.View.BackgroundColor = new RGBA_Bytes();
|
||||
feedRateRatioSlider.ValueChanged += (sender, e) =>
|
||||
|
|
@ -142,6 +143,7 @@ namespace MatterHackers.MatterControl.PrinterControls
|
|||
leftToRight.AddChild(extrusionDescription);
|
||||
extrusionRatioSlider = new SolidSlider(new Vector2(), sliderThumbWidth, minExtrutionRatio, maxExtrusionRatio, Orientation.Horizontal);
|
||||
extrusionRatioSlider.TotalWidthInPixels = sliderWidth;
|
||||
extrusionRatioSlider.HAnchor = HAnchor.ParentLeftRight;
|
||||
extrusionRatioSlider.Margin = new BorderDouble(5, 0);
|
||||
extrusionRatioSlider.Value = PrinterConnectionAndCommunication.Instance.ExtrusionRatio;
|
||||
extrusionRatioSlider.View.BackgroundColor = new RGBA_Bytes();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue