Made the terminal window remember it's settings when opened
Made it remember its position when opened Made it automatically open on start if it was left open on close.
This commit is contained in:
parent
326cc83672
commit
df9e18c3ee
5 changed files with 94 additions and 10 deletions
|
|
@ -163,6 +163,15 @@ namespace MatterHackers.MatterControl.ConfigurationPage
|
|||
buttonRow.HAnchor = HAnchor.ParentLeftRight;
|
||||
buttonRow.Margin = new BorderDouble(0,4);
|
||||
|
||||
Agg.Image.ImageBuffer terminalSettingsImage = StaticData.Instance.LoadIcon(Path.Combine("PrintStatusControls", "terminal-24x24.png"));
|
||||
if (!ActiveTheme.Instance.IsDarkTheme)
|
||||
{
|
||||
InvertLightness.DoInvertLightness(terminalSettingsImage);
|
||||
}
|
||||
|
||||
ImageWidget terminalIcon = new ImageWidget(terminalSettingsImage);
|
||||
terminalIcon.Margin = new BorderDouble(right: 6, bottom: 6);
|
||||
|
||||
TextWidget gcodeTerminalLabel = new TextWidget("Gcode Terminal");
|
||||
gcodeTerminalLabel.AutoExpandBoundsToText = true;
|
||||
gcodeTerminalLabel.TextColor = ActiveTheme.Instance.PrimaryTextColor;
|
||||
|
|
@ -171,7 +180,8 @@ namespace MatterHackers.MatterControl.ConfigurationPage
|
|||
openGcodeTerminalButton = textImageButtonFactory.Generate("Show Terminal".Localize().ToUpper());
|
||||
openGcodeTerminalButton.Click += new EventHandler(openGcodeTerminalButton_Click);
|
||||
|
||||
buttonRow.AddChild(gcodeTerminalLabel);
|
||||
buttonRow.AddChild(terminalIcon);
|
||||
buttonRow.AddChild(gcodeTerminalLabel);
|
||||
buttonRow.AddChild(new HorizontalSpacer());
|
||||
buttonRow.AddChild(openGcodeTerminalButton);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue