Improving SolidSlider to layout better

This commit is contained in:
Lars Brubaker 2017-09-13 15:55:12 -07:00
parent dfa6832b86
commit ad2c579160
4 changed files with 27 additions and 26 deletions

View file

@ -103,7 +103,6 @@ namespace MatterHackers.MatterControl.PrinterControls
HAnchor = HAnchor.Stretch,
TotalWidthInPixels = sliderWidth,
};
feedRateRatioSlider.View.BackgroundColor = new RGBA_Bytes();
feedRateRatioSlider.ValueChanged += (sender, e) =>
{
feedRateValue.ActuallNumberEdit.Value = Math.Round(feedRateRatioSlider.Value, 2);
@ -169,7 +168,7 @@ namespace MatterHackers.MatterControl.PrinterControls
Margin = new BorderDouble(5, 0),
Value = ExtrusionMultiplyerStream.ExtrusionRatio
};
extrusionRatioSlider.View.BackgroundColor = new RGBA_Bytes();
extrusionRatioSlider.BackgroundColor = new RGBA_Bytes();
extrusionRatioSlider.ValueChanged += (sender, e) =>
{
extrusionValue.ActuallNumberEdit.Value = Math.Round(extrusionRatioSlider.Value, 2);