Remove redundant StyleChanged event, add minimum height for rows
This commit is contained in:
parent
d1f8be909b
commit
851c4c758a
2 changed files with 2 additions and 11 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue