Use theme helper for common styling
This commit is contained in:
parent
cc9dc69413
commit
4899d77517
1 changed files with 6 additions and 8 deletions
|
|
@ -220,14 +220,12 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
|
||||
exportPlugin.Initialize(printer);
|
||||
|
||||
var exportGcodeButton = new TextButton(exportButtonText, menuTheme)
|
||||
{
|
||||
Name = "Export Gcode Button",
|
||||
Enabled = exportPlugin.Enabled,
|
||||
ToolTipText = exportPlugin.DisabledReason,
|
||||
};
|
||||
var exportGCodeButton = menuTheme.CreateDialogButton(exportButtonText);
|
||||
exportGCodeButton.Name = "Export Gcode Button";
|
||||
exportGCodeButton.Enabled = exportPlugin.Enabled;
|
||||
exportGCodeButton.ToolTipText = exportPlugin.DisabledReason;
|
||||
|
||||
exportGcodeButton.Click += (s, e) =>
|
||||
exportGCodeButton.Click += (s, e) =>
|
||||
{
|
||||
ExportPrintItemPage.DoExport(
|
||||
new[] { new InMemoryLibraryItem(printer.Bed.Scene) },
|
||||
|
|
@ -253,7 +251,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
|
||||
setupRow.AddChild(new HorizontalSpacer());
|
||||
setupRow.AddChild(startPrintButton);
|
||||
setupRow.AddChild(exportGcodeButton);
|
||||
setupRow.AddChild(exportGCodeButton);
|
||||
|
||||
printPanel.AddChild(setupRow);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue