From 22bb87f6c236864d495200cf1ea793a36ac347d0 Mon Sep 17 00:00:00 2001 From: Gregory Diaz Date: Mon, 3 Aug 2015 17:24:44 -0700 Subject: [PATCH] Fixed UI regression on the SliceSettingsControlWidget (specifically made the accent bar thicker and made some bottom padding adjustments) --- SlicerConfiguration/SettingsControlBar.cs | 2 +- SlicerConfiguration/SettingsControlSelectors.cs | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/SlicerConfiguration/SettingsControlBar.cs b/SlicerConfiguration/SettingsControlBar.cs index f05a59fbd..50ad90081 100644 --- a/SlicerConfiguration/SettingsControlBar.cs +++ b/SlicerConfiguration/SettingsControlBar.cs @@ -106,7 +106,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration { this.HAnchor |= HAnchor.ParentLeftRight; this.BackgroundColor = ActiveTheme.Instance.TransparentDarkOverlay; - this.Padding = new BorderDouble(8); + this.Padding = new BorderDouble(8, 12, 8, 8); } private void AddChildElements() diff --git a/SlicerConfiguration/SettingsControlSelectors.cs b/SlicerConfiguration/SettingsControlSelectors.cs index 18fa71dc9..76293ac05 100644 --- a/SlicerConfiguration/SettingsControlSelectors.cs +++ b/SlicerConfiguration/SettingsControlSelectors.cs @@ -65,13 +65,14 @@ namespace MatterHackers.MatterControl.SlicerConfiguration } this.HAnchor = HAnchor.ParentLeftRight; - this.VAnchor = Agg.UI.VAnchor.ParentBottomTop; + this.VAnchor = Agg.UI.VAnchor.Max_FitToChildren_ParentHeight; this.BackgroundColor = ActiveTheme.Instance.PrimaryBackgroundColor; - GuiWidget accentBar = new GuiWidget(1, 5); + GuiWidget accentBar = new GuiWidget(7, 5); accentBar.BackgroundColor = accentColor; accentBar.HAnchor = HAnchor.ParentLeftRight; + TextWidget labelText = new TextWidget(LocalizedString.Get(label).ToUpper()); labelText.TextColor = ActiveTheme.Instance.PrimaryTextColor; labelText.HAnchor = Agg.UI.HAnchor.ParentCenter;