fixing scale of preset window
This commit is contained in:
parent
33ebbafa25
commit
6baf716729
2 changed files with 5 additions and 1 deletions
|
|
@ -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; }
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue