More consistent manual controls disabled styling

- Issue MatterHackers/MCCentral#2687
Inconsistent disabled styling
This commit is contained in:
John Lewin 2018-01-18 09:07:22 -08:00
parent 580f57bdff
commit eb0b7255b6
4 changed files with 10 additions and 15 deletions

View file

@ -14,7 +14,7 @@ namespace MatterHackers.MatterControl.PrinterControls
{
private EventHandler unregisterEvents;
private EditLevelingSettingsWindow editLevelingSettingsWindow;
private Button runPrintLevelingButton;
private GuiWidget runPrintLevelingButton;
private TextImageButtonFactory buttonFactory;
private PrinterConfig printer;
@ -32,7 +32,7 @@ namespace MatterHackers.MatterControl.PrinterControls
};
buttonRow.AddChild(
new ImageWidget(AggContext.StaticData.LoadIcon("leveling_32x32.png", 24, 24, IconColor.Theme))
new IconButton(AggContext.StaticData.LoadIcon("leveling_32x32.png", 24, 24, IconColor.Theme), theme)
{
Margin = new BorderDouble(right: 6),
VAnchor = VAnchor.Center
@ -40,18 +40,18 @@ namespace MatterHackers.MatterControl.PrinterControls
// label
buttonRow.AddChild(
new TextWidget("", textColor: theme.Colors.PrimaryTextColor, pointSize: theme.DefaultFontSize)
new TextWidget("Software Print Leveling".Localize(), textColor: theme.Colors.PrimaryTextColor, pointSize: theme.DefaultFontSize)
{
AutoExpandBoundsToText = true,
VAnchor = VAnchor.Center,
Text = "Software Print Leveling".Localize()
});
buttonRow.AddChild(new HorizontalSpacer());
// configure button
runPrintLevelingButton = buttonFactory.Generate("Configure".Localize().ToUpper());
runPrintLevelingButton.Margin = new BorderDouble(left: 6);
runPrintLevelingButton = new TextButton("Configure".Localize(), theme);
runPrintLevelingButton.Margin = theme.ButtonSpacing;
runPrintLevelingButton.BackgroundColor = theme.MinimalShade;
runPrintLevelingButton.VAnchor = VAnchor.Center;
runPrintLevelingButton.Click += (sender, e) =>
{

View file

@ -67,10 +67,9 @@ namespace MatterHackers.MatterControl.PrinterControls
VAnchor = VAnchor.Fit
};
var feedRateDescription = new TextWidget("Speed Multiplier".Localize(), pointSize: theme.DefaultFontSize)
var feedRateDescription = new TextWidget("Speed Multiplier".Localize(), pointSize: theme.DefaultFontSize, textColor: theme.Colors.PrimaryTextColor)
{
MinimumSize = new Vector2(140, 0) * GuiWidget.DeviceScale,
TextColor = ActiveTheme.Instance.PrimaryTextColor,
VAnchor = VAnchor.Center,
};
row.AddChild(feedRateDescription);
@ -132,10 +131,9 @@ namespace MatterHackers.MatterControl.PrinterControls
VAnchor = VAnchor.Fit
};
var extrusionDescription = new TextWidget("Extrusion Multiplier".Localize(), pointSize: theme.DefaultFontSize)
var extrusionDescription = new TextWidget("Extrusion Multiplier".Localize(), pointSize: theme.DefaultFontSize, textColor: theme.Colors.PrimaryTextColor)
{
MinimumSize = new Vector2(140, 0) * GuiWidget.DeviceScale,
TextColor = ActiveTheme.Instance.PrimaryTextColor,
VAnchor = VAnchor.Center
};
row.AddChild(extrusionDescription);

View file

@ -42,10 +42,7 @@ namespace MatterHackers.MatterControl.PrinterControls
//private PrinterConfig printer;
private MacroControls(PrinterConfig printer, ThemeConfig theme)
{
var noMacrosFound = new TextWidget("No macros are currently set up for this printer.".Localize(), pointSize: 10)
{
TextColor = ActiveTheme.Instance.PrimaryTextColor,
};
var noMacrosFound = new TextWidget("No macros are currently set up for this printer.".Localize(), pointSize: 10, textColor: theme.Colors.PrimaryTextColor);
this.AddChild(noMacrosFound);
if (printer.Settings?.GetMacros(MacroUiLocation.Controls).Any() != true)

@ -1 +1 @@
Subproject commit ecec8c48d63c0b35c96ca8988655d83d806ed00d
Subproject commit 9de4051d4a7b124a105e49da6cb8b0fd2304b258