Made the text control less tall
This commit is contained in:
parent
f2f32ae75c
commit
fe65590ff5
1 changed files with 1 additions and 1 deletions
|
|
@ -79,6 +79,7 @@ namespace MatterHackers.MatterControl.PrinterControls
|
|||
SetDisplayAttributes();
|
||||
|
||||
fanSpeedDisplay = new EditableNumberDisplay(textImageButtonFactory, "{0}%".FormatWith(PrinterConnectionAndCommunication.Instance.FanSpeed0To255.ToString()), "100%");
|
||||
fanSpeedDisplay.VAnchor = VAnchor.ParentCenter;
|
||||
fanSpeedDisplay.EditComplete += (sender, e) =>
|
||||
{
|
||||
PrinterConnectionAndCommunication.Instance.FanSpeed0To255 = (int)(fanSpeedDisplay.GetValue() * 255.5 / 100);
|
||||
|
|
@ -130,7 +131,6 @@ namespace MatterHackers.MatterControl.PrinterControls
|
|||
fanToggleSwitchText = new TextWidget (fanActive?"On":"Off", pointSize: 10, textColor: ActiveTheme.Instance.PrimaryTextColor);
|
||||
fanToggleSwitchText.VAnchor = Agg.UI.VAnchor.ParentCenter;
|
||||
|
||||
|
||||
toggleSwitch = toggleSwitchFactory.GenerateGivenTextWidget (fanToggleSwitchText,"On","Off", fanActive);
|
||||
toggleSwitch.VAnchor = Agg.UI.VAnchor.ParentCenter;
|
||||
toggleSwitch.SwitchStateChanged += new EventHandler (ToggleSwitch_Click);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue