Adjust slice settings save/revert buttons
This commit is contained in:
parent
8869b92b2e
commit
4d513ab51b
3 changed files with 16 additions and 13 deletions
|
|
@ -83,7 +83,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
|
||||
//this.AddChild(new GuiWidget(6, 0));
|
||||
//this.AddChild(new SliceSelectorWidget("Item", RGBA_Bytes.Violet));
|
||||
this.Height = 70 * TextWidget.GlobalPointSizeScaleRatio;
|
||||
this.Height = 60 * TextWidget.GlobalPointSizeScaleRatio;
|
||||
}
|
||||
|
||||
event EventHandler unregisterEvents;
|
||||
|
|
@ -114,9 +114,8 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
void SetDisplayAttributes()
|
||||
{
|
||||
this.HAnchor |= HAnchor.ParentLeftRight;
|
||||
this.BackgroundColor = ActiveTheme.Instance.TransparentDarkOverlay;
|
||||
|
||||
this.Padding = new BorderDouble(6,10,6,5);
|
||||
this.BackgroundColor = ActiveTheme.Instance.TransparentDarkOverlay;
|
||||
this.Padding = new BorderDouble(8);
|
||||
}
|
||||
|
||||
void AddChildElements()
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
}
|
||||
|
||||
this.HAnchor = HAnchor.ParentLeftRight;
|
||||
this.VAnchor = Agg.UI.VAnchor.ParentBottomTop;
|
||||
this.VAnchor = Agg.UI.VAnchor.ParentBottomTop;
|
||||
this.BackgroundColor = ActiveTheme.Instance.PrimaryBackgroundColor;
|
||||
|
||||
GuiWidget accentBar = new GuiWidget(1, 5);
|
||||
|
|
|
|||
|
|
@ -58,8 +58,8 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
|
||||
|
||||
this.textImageButtonFactory.borderWidth = 1;
|
||||
this.textImageButtonFactory.normalBorderColor = new RGBA_Bytes(ActiveTheme.Instance.PrimaryTextColor, 200);
|
||||
this.textImageButtonFactory.hoverBorderColor = new RGBA_Bytes(ActiveTheme.Instance.PrimaryTextColor, 200);
|
||||
this.textImageButtonFactory.normalBorderColor = new RGBA_Bytes(ActiveTheme.Instance.PrimaryTextColor, 180);
|
||||
this.textImageButtonFactory.hoverBorderColor = new RGBA_Bytes(ActiveTheme.Instance.PrimaryTextColor, 180);
|
||||
|
||||
this.textImageButtonFactory.disabledTextColor = RGBA_Bytes.DarkGray;
|
||||
this.textImageButtonFactory.hoverTextColor = ActiveTheme.Instance.PrimaryTextColor;
|
||||
|
|
@ -77,18 +77,22 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
unsavedMessage.TextColor = ActiveTheme.Instance.PrimaryTextColor;
|
||||
unsavedMessage.VAnchor = VAnchor.ParentCenter;
|
||||
|
||||
revertbutton = textImageButtonFactory.Generate(LocalizedString.Get("Revert").ToUpper(),centerText:true);
|
||||
revertbutton.VAnchor = VAnchor.ParentCenter;
|
||||
revertbutton.Visible = true;
|
||||
revertbutton.Margin = new BorderDouble(5, 0, 0, 0);
|
||||
revertbutton.Click += new EventHandler(revertbutton_Click);
|
||||
|
||||
this.textImageButtonFactory.normalBorderColor = new RGBA_Bytes(ActiveTheme.Instance.PrimaryTextColor, 255);
|
||||
this.textImageButtonFactory.hoverBorderColor = new RGBA_Bytes(ActiveTheme.Instance.PrimaryTextColor, 255);
|
||||
this.textImageButtonFactory.normalTextColor = ActiveTheme.Instance.PrimaryTextColor;
|
||||
|
||||
saveButton = textImageButtonFactory.Generate(LocalizedString.Get("Save").ToUpper(),centerText:true);
|
||||
saveButton.VAnchor = VAnchor.ParentCenter;
|
||||
saveButton.Visible = true;
|
||||
saveButton.Margin = new BorderDouble(5, 0, 5, 0);
|
||||
saveButton.Click += new EventHandler(saveButton_Click);
|
||||
|
||||
revertbutton = textImageButtonFactory.Generate(LocalizedString.Get("Revert").ToUpper(),centerText:true);
|
||||
revertbutton.VAnchor = VAnchor.ParentCenter;
|
||||
revertbutton.Visible = true;
|
||||
revertbutton.Margin = new BorderDouble(5, 0, 0, 0);
|
||||
revertbutton.Click += new EventHandler(revertbutton_Click);
|
||||
|
||||
this.AddChild(new HorizontalSpacer());
|
||||
this.AddChild(unsavedMessage);
|
||||
this.AddChild(saveButton);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue