Revise plugins
This commit is contained in:
parent
9eeac1c782
commit
0b1e3732c4
29 changed files with 566 additions and 167 deletions
|
|
@ -77,9 +77,11 @@ namespace MatterHackers.MatterControl
|
|||
// Camera Monitoring
|
||||
bool hasCamera = true || ApplicationSettings.Instance.get(ApplicationSettingsKey.HardwareHasCamera) == "true";
|
||||
|
||||
var configureIcon = AggContext.StaticData.LoadIcon("fa-cog_16.png", IconColor.Raw);
|
||||
|
||||
var previewButton = new IconButton(configureIcon, theme)
|
||||
{
|
||||
ToolTipText = "Configure Camera View".Localize()
|
||||
ToolTipText = "Preview".Localize()
|
||||
};
|
||||
previewButton.Click += (s, e) =>
|
||||
{
|
||||
|
|
@ -362,6 +364,28 @@ namespace MatterHackers.MatterControl
|
|||
theme),
|
||||
advancedPanel);
|
||||
|
||||
#if DEBUG
|
||||
var configurePluginsButton = new IconButton(configureIcon, theme)
|
||||
{
|
||||
ToolTipText = "Configure Plugins".Localize(),
|
||||
Margin = 0
|
||||
};
|
||||
configurePluginsButton.Click += (s, e) =>
|
||||
{
|
||||
UiThread.RunOnIdle(() =>
|
||||
{
|
||||
DialogWindow.Show<PluginsPage>();
|
||||
});
|
||||
};
|
||||
|
||||
this.AddSettingsRow(
|
||||
new SettingsItem(
|
||||
"Plugins".Localize(),
|
||||
configurePluginsButton,
|
||||
theme),
|
||||
advancedPanel);
|
||||
#endif
|
||||
|
||||
advancedPanel.Children<SettingsItem>().First().Border = new BorderDouble(0, 1);
|
||||
|
||||
// Enforce consistent SectionWidget spacing and last child borders
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue