Skip to content

Commit d735317

Browse files
committed
* Address feedback
1 parent 758f5bf commit d735317

File tree

6 files changed

+27
-24
lines changed

6 files changed

+27
-24
lines changed

Scripts/ModernBuild/General/AppState.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#region BSD License
22
/*
33
* New BSD 3-Clause License (https://github.com/Krypton-Suite/Standard-Toolkit/blob/master/LICENSE)
4-
* Modifications by Peter Wagner (aka Wagnerp), Simon Coghlan (aka Smurf-IV), Giduac & Ahmed Abdelhameed, tobitege et al. 2025 - 2025. All rights reserved.
4+
* Modifications by Peter Wagner (aka Wagnerp), Simon Coghlan (aka Smurf-IV), Giduac & tobitege et al. 2025 - 2025. All rights reserved.
55
*/
66
#endregion
77

Scripts/ModernBuild/General/Definitions.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ public enum ChannelType
1111
{
1212
Nightly,
1313
Canary,
14-
Stable
14+
Stable,
15+
LTS
1516
}
1617

1718
public enum BuildAction
@@ -22,7 +23,9 @@ public enum BuildAction
2223
BuildPack,
2324
Debug,
2425
NuGetTools,
25-
Installer
26+
Installer,
27+
CreateArchives,
28+
Documentation,
2629
}
2730

2831
public enum PackMode

Source/Krypton Components/TestForm/Main.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ private void kryptonButton17_Click(object sender, EventArgs e)
402402

403403
private void kryptonButton18_Click(object sender, EventArgs e)
404404
{
405-
new ThemedSystemMenuTest().ShowDialog();
405+
new SystemMenuTest().ShowDialog();
406406
}
407407

408408
private void kryptonButton19_Click(object sender, EventArgs e)

Source/Krypton Components/TestForm/ThemedSystemMenuTest.Designer.cs renamed to Source/Krypton Components/TestForm/SystemMenuTest.Designer.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Source/Krypton Components/TestForm/ThemedSystemMenuTest.cs renamed to Source/Krypton Components/TestForm/SystemMenuTest.cs

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
namespace TestForm;
22

33
/// <summary>
4-
/// Test form to demonstrate the themed system menu functionality.
4+
/// Test form to demonstrate the system menu functionality.
55
/// </summary>
6-
public partial class ThemedSystemMenuTest : KryptonForm
6+
public partial class SystemMenuTest : KryptonForm
77
{
8-
public ThemedSystemMenuTest()
8+
public SystemMenuTest()
99
{
1010
InitializeComponent();
1111

1212
// Set form properties
13-
Text = "Themed System Menu Test";
13+
Text = "System Menu Test";
1414
Size = new Size(600, 400);
1515
StartPosition = FormStartPosition.CenterScreen;
1616

17-
// Enable the themed system menu (enabled by default)
17+
// Enable the system menu (enabled by default)
1818
//UseThemedSystemMenu = true;
1919

2020
// Configure how the menu appears
@@ -32,14 +32,14 @@ protected override void OnLoad(EventArgs e)
3232
kryptonCheckBox2.Checked = SystemMenuValues.ShowOnRightClick;
3333
kryptonCheckBox3.Checked = SystemMenuValues.ShowOnAltSpace;
3434

35-
// Demonstrate the enhanced themed system menu features
35+
// Demonstrate the enhanced system menu features
3636
if (KryptonSystemMenu != null)
3737
{
3838
// Add a custom menu item using the new method
3939
KryptonSystemMenu.AddCustomMenuItem("About This Form", (sender, args) =>
4040
{
41-
MessageBox.Show("This is a test form demonstrating the themed system menu functionality!",
42-
"About", MessageBoxButtons.OK, MessageBoxIcon.Information);
41+
KryptonMessageBox.Show("This is a test form demonstrating the system menu functionality!",
42+
"About", KryptonMessageBoxButtons.OK, KryptonMessageBoxIcon.Information);
4343
});
4444

4545
// Add a separator
@@ -49,8 +49,8 @@ protected override void OnLoad(EventArgs e)
4949
KryptonSystemMenu.AddCustomMenuItem("Refresh Menu", (sender, args) =>
5050
{
5151
KryptonSystemMenu.Refresh();
52-
MessageBox.Show("Menu refreshed! Current item count: " + KryptonSystemMenu.MenuItemCount,
53-
"Info", MessageBoxButtons.OK, MessageBoxIcon.Information);
52+
KryptonMessageBox.Show("Menu refreshed! Current item count: " + KryptonSystemMenu.MenuItemCount,
53+
"Info", KryptonMessageBoxButtons.OK, KryptonMessageBoxIcon.Information);
5454
});
5555

5656
// Show the current menu item count and theme
@@ -69,7 +69,7 @@ private void UpdateFormTitle()
6969
if (KryptonSystemMenu != null)
7070
{
7171
var themeInfo = $"Theme: {KryptonSystemMenu.CurrentIconTheme}";
72-
Text = $"Themed System Menu Test - {KryptonSystemMenu.MenuItemCount} items - {themeInfo}";
72+
Text = $"System Menu Test - {KryptonSystemMenu.MenuItemCount} items - {themeInfo}";
7373

7474
// Also update the theme label
7575
UpdateThemeLabel();
@@ -124,10 +124,10 @@ private void kryptonButton1_Click(object sender, EventArgs e)
124124
if (KryptonSystemMenu != null)
125125
{
126126
KryptonSystemMenu.ClearCustomItems();
127-
MessageBox.Show("Custom items cleared! Menu restored to default.", "Info", MessageBoxButtons.OK, MessageBoxIcon.Information);
127+
KryptonMessageBox.Show("Custom items cleared! Menu restored to default.", "Info", KryptonMessageBoxButtons.OK, KryptonMessageBoxIcon.Information);
128128

129129
// Update the title to show new item count
130-
Text = $"Themed System Menu Test - {KryptonSystemMenu.MenuItemCount} items";
130+
Text = $"System Menu Test - {KryptonSystemMenu.MenuItemCount} items";
131131
}
132132
}
133133

@@ -144,7 +144,7 @@ private void kryptonButton2_Click(object sender, EventArgs e)
144144
$"Custom Items: {string.Join(", ", customItems)}\n" +
145145
$"Current Icon Theme: {KryptonSystemMenu.CurrentIconTheme}";
146146

147-
MessageBox.Show(info, "Menu Info", MessageBoxButtons.OK, MessageBoxIcon.Information);
147+
KryptonMessageBox.Show(info, "Menu Info", KryptonMessageBoxButtons.OK, KryptonMessageBoxIcon.Information);
148148
}
149149
}
150150

@@ -173,11 +173,11 @@ private void kryptonButton3_Click(object sender, EventArgs e)
173173

174174
// Update the theme label to show the new theme
175175
kryptonLabel3.Values.Text = $"Current Theme: {nextTheme} (Manually Set)";
176-
177-
MessageBox.Show($"Switched to {nextTheme} theme and refreshed icons!\n" +
178-
$"Previous theme: {currentTheme}\n" +
179-
$"New theme: {nextTheme}",
180-
"Theme Changed", MessageBoxButtons.OK, MessageBoxIcon.Information);
176+
177+
KryptonMessageBox.Show($"Switched to {nextTheme} theme and refreshed icons!\n" +
178+
$"Previous theme: {currentTheme}\n" +
179+
$"New theme: {nextTheme}",
180+
"Theme Changed", KryptonMessageBoxButtons.OK, KryptonMessageBoxIcon.Information);
181181
}
182182
}
183183
}
File renamed without changes.

0 commit comments

Comments
 (0)