fixing scale of preset window

This commit is contained in:
LarsBrubaker 2020-08-31 21:23:25 -07:00
parent 33ebbafa25
commit 6baf716729
2 changed files with 5 additions and 1 deletions

View file

@ -35,8 +35,11 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
public class PresetsContext
{
public List<PrinterSettingsLayer> PresetLayers { get; }
public PrinterSettingsLayer PersistenceLayer { get; set; }
public Action<string> SetAsActive { get; set; }
public Action DeleteLayer { get; set; }
public NamedSettingsLayers LayerType { get; set; }

View file

@ -54,7 +54,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
this.AlwaysOnTopOfMain = true;
this.WindowTitle = "Slice Presets Editor".Localize();
this.WindowSize = new Vector2(640, 480);
this.WindowSize = new Vector2(640 * DeviceScale, 480 * DeviceScale);
this.AnchorAll();
this.headerRow.Visible = false;
@ -67,6 +67,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
presetsContext.LayerType.ToString() + " Name",
boldFont: true,
emptyText: "Setting Name".Localize());
inlineNameEdit.ValueChanged += (s, e) =>
{
printer.Settings.SetValue(SettingsKey.layer_name, inlineNameEdit.Text, presetsContext.PersistenceLayer);