Reduce font sizes, remove caps from preset labels

This commit is contained in:
John Lewin 2017-10-31 14:37:28 -07:00
parent d6a54f880b
commit 0de97fe0bf
5 changed files with 13 additions and 7 deletions

View file

@ -86,7 +86,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
};
// Section Label
this.AddChild(new TextWidget(label.Localize().ToUpper())
this.AddChild(new TextWidget(label.Localize())
{
TextColor = whiteBackground ? Color.Black : ActiveTheme.Instance.PrimaryTextColor,
HAnchor = HAnchor.Left,

View file

@ -155,7 +155,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
},
presetsContext.LayerType);
return new SliceSettingsWidget(printer, settingsContext)
return new SliceSettingsWidget(printer, settingsContext, ApplicationController.Instance.Theme)
{
ShowControlBar = false
};

View file

@ -50,9 +50,12 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
private EventHandler unregisterEvents;
public SliceSettingsWidget(PrinterConfig printer, SettingsContext settingsContext)
private ThemeConfig theme;
public SliceSettingsWidget(PrinterConfig printer, SettingsContext settingsContext, ThemeConfig theme)
: base (FlowDirection.TopToBottom)
{
this.theme = theme;
this.printer = printer;
this.BackgroundColor = ApplicationController.Instance.Theme.TabBodyBackground;
@ -114,7 +117,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
primaryTabControl.AddTab(new TextTab(
categoryPage,
category.Name + " Tab",
14,
theme.DefaultFontSize,
ActiveTheme.Instance.TabLabelSelected,
new Color(),
ActiveTheme.Instance.TabLabelUnselected,
@ -257,7 +260,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
var groupTabWidget = new TextTab(
groupTabPage,
group.Name + " Tab",
14,
theme.DefaultFontSize,
ActiveTheme.Instance.TabLabelSelected,
ActiveTheme.Instance.TertiaryBackgroundColor,
ActiveTheme.Instance.TabLabelUnselected,