diff --git a/ModpackUpdater.Apps.Manager/Form1.Designer.cs b/ModpackUpdater.Apps.Manager/Form1.Designer.cs
index aa0bab8..05c4de0 100644
--- a/ModpackUpdater.Apps.Manager/Form1.Designer.cs
+++ b/ModpackUpdater.Apps.Manager/Form1.Designer.cs
@@ -28,7 +28,7 @@ partial class Form1
///
private void InitializeComponent()
{
- var tableViewDefinition1 = new Telerik.WinControls.UI.TableViewDefinition();
+ var tableViewDefinition2 = new Telerik.WinControls.UI.TableViewDefinition();
radSplitContainer1 = new Telerik.WinControls.UI.RadSplitContainer();
splitPanel1 = new Telerik.WinControls.UI.SplitPanel();
tableLayoutPanel2 = new TableLayoutPanel();
@@ -38,11 +38,11 @@ partial class Form1
radGridView_Actions = new Telerik.WinControls.UI.RadGridView();
radMenuItem_Workspace = new Telerik.WinControls.UI.RadMenuItem();
radMenuItem_WorkspacePreferences = new Telerik.WinControls.UI.RadMenuItem();
- radMenuItem2 = new Telerik.WinControls.UI.RadMenuItem();
- radMenu1 = new Telerik.WinControls.UI.RadMenu();
radMenuSeparatorItem1 = new Telerik.WinControls.UI.RadMenuSeparatorItem();
radMenuItem_OpenNewWorkspace = new Telerik.WinControls.UI.RadMenuItem();
radMenuItem_RecentWorkspaces = new Telerik.WinControls.UI.RadMenuItem();
+ radMenuItem_Tools = new Telerik.WinControls.UI.RadMenuItem();
+ radMenu1 = new Telerik.WinControls.UI.RadMenu();
((System.ComponentModel.ISupportInitialize)radSplitContainer1).BeginInit();
radSplitContainer1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)splitPanel1).BeginInit();
@@ -147,7 +147,7 @@ partial class Form1
//
//
//
- radGridView_Actions.MasterTemplate.ViewDefinition = tableViewDefinition1;
+ radGridView_Actions.MasterTemplate.ViewDefinition = tableViewDefinition2;
radGridView_Actions.Name = "radGridView_Actions";
radGridView_Actions.Size = new Size(544, 416);
radGridView_Actions.TabIndex = 0;
@@ -163,19 +163,6 @@ partial class Form1
radMenuItem_WorkspacePreferences.Name = "radMenuItem_WorkspacePreferences";
radMenuItem_WorkspacePreferences.Text = "Preferences";
//
- // radMenuItem2
- //
- radMenuItem2.Name = "radMenuItem2";
- radMenuItem2.Text = "Tools";
- //
- // radMenu1
- //
- radMenu1.Items.AddRange(new Telerik.WinControls.RadItem[] { radMenuItem_Workspace, radMenuItem2 });
- radMenu1.Location = new Point(0, 0);
- radMenu1.Name = "radMenu1";
- radMenu1.Size = new Size(800, 28);
- radMenu1.TabIndex = 1;
- //
// radMenuSeparatorItem1
//
radMenuSeparatorItem1.Name = "radMenuSeparatorItem1";
@@ -192,6 +179,19 @@ partial class Form1
radMenuItem_RecentWorkspaces.Name = "radMenuItem_RecentWorkspaces";
radMenuItem_RecentWorkspaces.Text = "Recent workspaces";
//
+ // radMenuItem_Tools
+ //
+ radMenuItem_Tools.Name = "radMenuItem_Tools";
+ radMenuItem_Tools.Text = "Tools";
+ //
+ // radMenu1
+ //
+ radMenu1.Items.AddRange(new Telerik.WinControls.RadItem[] { radMenuItem_Workspace, radMenuItem_Tools });
+ radMenu1.Location = new Point(0, 0);
+ radMenu1.Name = "radMenu1";
+ radMenu1.Size = new Size(800, 28);
+ radMenu1.TabIndex = 1;
+ //
// Form1
//
AutoScaleBaseSize = new Size(7, 15);
@@ -229,7 +229,7 @@ partial class Form1
private Telerik.WinControls.UI.RadMenu radMenu1;
private Telerik.WinControls.UI.RadMenuItem radMenuItem_Workspace;
private Telerik.WinControls.UI.RadMenuItem radMenuItem_WorkspacePreferences;
- private Telerik.WinControls.UI.RadMenuItem radMenuItem2;
+ private Telerik.WinControls.UI.RadMenuItem radMenuItem_Tools;
private TableLayoutPanel tableLayoutPanel2;
private TableLayoutPanel tableLayoutPanel1;
private Telerik.WinControls.UI.RadGridView radGridView_Actions;
diff --git a/ModpackUpdater.Apps.Manager/Form1.cs b/ModpackUpdater.Apps.Manager/Form1.cs
index 285ad5b..9c1894f 100644
--- a/ModpackUpdater.Apps.Manager/Form1.cs
+++ b/ModpackUpdater.Apps.Manager/Form1.cs
@@ -2,6 +2,7 @@ using ModpackUpdater.Apps.Manager.Api.Model;
using ModpackUpdater.Apps.Manager.Api.Plugins.Params;
using Pilz.Plugins.Advanced;
using Pilz.Plugins.Advanced.UI.Telerik;
+using Pilz.UI.Symbols;
using Telerik.WinControls.UI;
namespace ModpackUpdater.Apps.Manager;
@@ -14,6 +15,12 @@ public partial class Form1 : RadForm, IMainApi
{
InitializeComponent();
+ radMenuItem_Workspace.SvgImage = AppGlobals.Symbols.GetSvgImage(AppSymbols.workspace, SymbolSize.Small);
+ radMenuItem_WorkspacePreferences.SvgImage = AppGlobals.Symbols.GetSvgImage(AppSymbols.settings, SymbolSize.Small);
+ radMenuItem_OpenNewWorkspace.SvgImage = AppGlobals.Symbols.GetSvgImage(AppSymbols.new_window, SymbolSize.Small);
+ radMenuItem_RecentWorkspaces.SvgImage = AppGlobals.Symbols.GetSvgImage(AppSymbols.time_machine, SymbolSize.Small);
+ radMenuItem_Tools.SvgImage = AppGlobals.Symbols.GetSvgImage(AppSymbols.tools, SymbolSize.Small);
+
PluginFeatureController.Instance.Functions.Get(FeatureTypes.Workspace).InsertItemsTo(radMenuItem_OpenNewWorkspace.Items, customClickHandler: RadMenuItem_OpenNewWorkspace_Click);
PluginFeatureController.Instance.Functions.Get(FeatureTypes.Tools).InsertItemsTo(radMenuItem_OpenNewWorkspace.Items, customClickHandler: RadMenuItem_ToolsItem_Click);
}
diff --git a/ModpackUpdater.Apps/AppSymbols.cs b/ModpackUpdater.Apps/AppSymbols.cs
index 412beaf..a640a0c 100644
--- a/ModpackUpdater.Apps/AppSymbols.cs
+++ b/ModpackUpdater.Apps/AppSymbols.cs
@@ -20,4 +20,9 @@ public enum AppSymbols
github,
gitlab,
cancel,
+ tools,
+ workspace,
+ new_window,
+ time_machine,
+ settings,
}
diff --git a/ModpackUpdater.Apps/Symbols/new_window.svg b/ModpackUpdater.Apps/Symbols/new_window.svg
new file mode 100644
index 0000000..61eaedb
--- /dev/null
+++ b/ModpackUpdater.Apps/Symbols/new_window.svg
@@ -0,0 +1,7 @@
+
+
\ No newline at end of file
diff --git a/ModpackUpdater.Apps/Symbols/settings.svg b/ModpackUpdater.Apps/Symbols/settings.svg
new file mode 100644
index 0000000..a087527
--- /dev/null
+++ b/ModpackUpdater.Apps/Symbols/settings.svg
@@ -0,0 +1,5 @@
+
+
\ No newline at end of file
diff --git a/ModpackUpdater.Apps/Symbols/time_machine.svg b/ModpackUpdater.Apps/Symbols/time_machine.svg
new file mode 100644
index 0000000..10d9c5c
--- /dev/null
+++ b/ModpackUpdater.Apps/Symbols/time_machine.svg
@@ -0,0 +1,11 @@
+
+
\ No newline at end of file
diff --git a/ModpackUpdater.Apps/Symbols/tools.svg b/ModpackUpdater.Apps/Symbols/tools.svg
new file mode 100644
index 0000000..4aa505c
--- /dev/null
+++ b/ModpackUpdater.Apps/Symbols/tools.svg
@@ -0,0 +1,7 @@
+
+
\ No newline at end of file
diff --git a/ModpackUpdater.Apps/Symbols/workspace.svg b/ModpackUpdater.Apps/Symbols/workspace.svg
new file mode 100644
index 0000000..47e0494
--- /dev/null
+++ b/ModpackUpdater.Apps/Symbols/workspace.svg
@@ -0,0 +1,10 @@
+
+
\ No newline at end of file