Remove redundant StyleChanged event, add minimum height for rows

This commit is contained in:
John Lewin 2018-04-06 06:52:18 -07:00
parent d1f8be909b
commit 851c4c758a
2 changed files with 2 additions and 11 deletions

View file

@ -42,8 +42,6 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
private static readonly Color qualitySettingBackgroundColor = Color.YellowGreen;
public static readonly Color userSettingBackgroundColor = new Color(68, 95, 220, 150);
public event EventHandler StyleChanged;
private SettingsContext settingsContext;
private PrinterConfig printer;
private SliceSettingData settingData;
@ -138,8 +136,6 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
if (this.BorderColor != value)
{
this.BorderColor = value;
this.StyleChanged?.Invoke(null, null);
}
}
}

View file

@ -671,7 +671,8 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
{
Padding = new BorderDouble(left: 6),
HAnchor = HAnchor.Stretch,
VAnchor = VAnchor.Fit
VAnchor = VAnchor.Fit,
MinimumSize = new Vector2(0, theme.ButtonHeight),
};
if (!PrinterSettings.KnownSettings.Contains(settingData.SlicerConfigName))
@ -906,12 +907,6 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
row.AddChild(contentWrapper);
settingsRow.StyleChanged += (s, e) =>
{
row.BackgroundColor = settingsRow.BackgroundColor;
row.BorderColor = settingsRow.HighlightColor;
};
return column;
}
else