diff --git a/DamagePrinter/DamagePrinter.sln b/DamagePrinter/DamagePrinter.sln
index 4691bd8..96acc86 100644
--- a/DamagePrinter/DamagePrinter.sln
+++ b/DamagePrinter/DamagePrinter.sln
@@ -9,6 +9,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SteamShared", "..\SteamShar
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LoreSoft.MathExpressions", "..\SteamShared\LoreSoft.MathExpressions\LoreSoft.MathExpressions.csproj", "{B6813448-FCE2-429C-81B5-9722FEA839B8}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DamagePrinterGUI", "DamagePrinterGUI\DamagePrinterGUI.csproj", "{657571D7-CFCC-4773-BA52-191A46687DD0}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -55,6 +57,18 @@ Global
{B6813448-FCE2-429C-81B5-9722FEA839B8}.Release|x64.Build.0 = Release|x64
{B6813448-FCE2-429C-81B5-9722FEA839B8}.Release|x86.ActiveCfg = Release|x86
{B6813448-FCE2-429C-81B5-9722FEA839B8}.Release|x86.Build.0 = Release|x86
+ {657571D7-CFCC-4773-BA52-191A46687DD0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {657571D7-CFCC-4773-BA52-191A46687DD0}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {657571D7-CFCC-4773-BA52-191A46687DD0}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {657571D7-CFCC-4773-BA52-191A46687DD0}.Debug|x64.Build.0 = Debug|Any CPU
+ {657571D7-CFCC-4773-BA52-191A46687DD0}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {657571D7-CFCC-4773-BA52-191A46687DD0}.Debug|x86.Build.0 = Debug|Any CPU
+ {657571D7-CFCC-4773-BA52-191A46687DD0}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {657571D7-CFCC-4773-BA52-191A46687DD0}.Release|Any CPU.Build.0 = Release|Any CPU
+ {657571D7-CFCC-4773-BA52-191A46687DD0}.Release|x64.ActiveCfg = Release|Any CPU
+ {657571D7-CFCC-4773-BA52-191A46687DD0}.Release|x64.Build.0 = Release|Any CPU
+ {657571D7-CFCC-4773-BA52-191A46687DD0}.Release|x86.ActiveCfg = Release|Any CPU
+ {657571D7-CFCC-4773-BA52-191A46687DD0}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/DamagePrinter/DamagePrinterGUI/App.xaml b/DamagePrinter/DamagePrinterGUI/App.xaml
new file mode 100644
index 0000000..4d2312a
--- /dev/null
+++ b/DamagePrinter/DamagePrinterGUI/App.xaml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
diff --git a/DamagePrinter/DamagePrinterGUI/App.xaml.cs b/DamagePrinter/DamagePrinterGUI/App.xaml.cs
new file mode 100644
index 0000000..7bf2abd
--- /dev/null
+++ b/DamagePrinter/DamagePrinterGUI/App.xaml.cs
@@ -0,0 +1,17 @@
+using System;
+using System.Collections.Generic;
+using System.Configuration;
+using System.Data;
+using System.Linq;
+using System.Threading.Tasks;
+using System.Windows;
+
+namespace DamagePrinterGUI
+{
+ ///
+ /// Interaction logic for App.xaml
+ ///
+ public partial class App : Application
+ {
+ }
+}
diff --git a/DamagePrinter/DamagePrinterGUI/AssemblyInfo.cs b/DamagePrinter/DamagePrinterGUI/AssemblyInfo.cs
new file mode 100644
index 0000000..8b5504e
--- /dev/null
+++ b/DamagePrinter/DamagePrinterGUI/AssemblyInfo.cs
@@ -0,0 +1,10 @@
+using System.Windows;
+
+[assembly: ThemeInfo(
+ ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
+ //(used if a resource is not found in the page,
+ // or application resource dictionaries)
+ ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
+ //(used if a resource is not found in the page,
+ // app, or any theme specific resource dictionaries)
+)]
diff --git a/DamagePrinter/DamagePrinterGUI/DamagePrinterGUI.csproj b/DamagePrinter/DamagePrinterGUI/DamagePrinterGUI.csproj
new file mode 100644
index 0000000..6c847e2
--- /dev/null
+++ b/DamagePrinter/DamagePrinterGUI/DamagePrinterGUI.csproj
@@ -0,0 +1,13 @@
+
+
+
+ WinExe
+ net6.0-windows
+ 0.1.0
+ Mathias Lui
+ enable
+ true
+ False
+
+
+
diff --git a/DamagePrinter/DamagePrinterGUI/MainWindow.xaml b/DamagePrinter/DamagePrinterGUI/MainWindow.xaml
new file mode 100644
index 0000000..ee98ffa
--- /dev/null
+++ b/DamagePrinter/DamagePrinterGUI/MainWindow.xaml
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/DamagePrinter/DamagePrinterGUI/MainWindow.xaml.cs b/DamagePrinter/DamagePrinterGUI/MainWindow.xaml.cs
new file mode 100644
index 0000000..949007f
--- /dev/null
+++ b/DamagePrinter/DamagePrinterGUI/MainWindow.xaml.cs
@@ -0,0 +1,28 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+
+namespace DamagePrinterGUI
+{
+ ///
+ /// Interaction logic for MainWindow.xaml
+ ///
+ public partial class MainWindow : Window
+ {
+ public MainWindow()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/DamagePrinter/DamagePrinterGUI/Themes/ColourfulDarkTheme.xaml b/DamagePrinter/DamagePrinterGUI/Themes/ColourfulDarkTheme.xaml
new file mode 100644
index 0000000..7f2ecfd
--- /dev/null
+++ b/DamagePrinter/DamagePrinterGUI/Themes/ColourfulDarkTheme.xaml
@@ -0,0 +1,4496 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/DamagePrinter/DamagePrinterGUI/Themes/ColourfulDarkTheme.xaml.cs b/DamagePrinter/DamagePrinterGUI/Themes/ColourfulDarkTheme.xaml.cs
new file mode 100644
index 0000000..9614159
--- /dev/null
+++ b/DamagePrinter/DamagePrinterGUI/Themes/ColourfulDarkTheme.xaml.cs
@@ -0,0 +1,33 @@
+using System.Windows;
+
+namespace REghZyFramework.Themes
+{
+ public partial class ColourfulDarkTheme
+ {
+ private void CloseWindow_Event(object sender, RoutedEventArgs e)
+ {
+ if (e.Source != null)
+ try { CloseWind(Window.GetWindow((FrameworkElement)e.Source)); } catch { }
+ }
+ private void AutoMinimize_Event(object sender, RoutedEventArgs e)
+ {
+ if (e.Source != null)
+ try { MaximizeRestore(Window.GetWindow((FrameworkElement)e.Source)); } catch { }
+ }
+ private void Minimize_Event(object sender, RoutedEventArgs e)
+ {
+ if (e.Source != null)
+ try { MinimizeWind(Window.GetWindow((FrameworkElement)e.Source)); } catch { }
+ }
+
+ public void CloseWind(Window window) => window.Close();
+ public void MaximizeRestore(Window window)
+ {
+ if (window.WindowState == WindowState.Maximized)
+ window.WindowState = WindowState.Normal;
+ else if (window.WindowState == WindowState.Normal)
+ window.WindowState = WindowState.Maximized;
+ }
+ public void MinimizeWind(Window window) => window.WindowState = WindowState.Minimized;
+ }
+}
diff --git a/DamagePrinter/DamagePrinterGUI/Themes/ColourfulLightTheme.xaml b/DamagePrinter/DamagePrinterGUI/Themes/ColourfulLightTheme.xaml
new file mode 100644
index 0000000..6b0c050
--- /dev/null
+++ b/DamagePrinter/DamagePrinterGUI/Themes/ColourfulLightTheme.xaml
@@ -0,0 +1,4546 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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UI/Themes/ColourfulLightTheme.xaml.cs b/DamagePrinter/DamagePrinterGUI/Themes/ColourfulLightTheme.xaml.cs
new file mode 100644
index 0000000..e89b903
--- /dev/null
+++ b/DamagePrinter/DamagePrinterGUI/Themes/ColourfulLightTheme.xaml.cs
@@ -0,0 +1,33 @@
+using System.Windows;
+
+namespace REghZyFramework.Themes
+{
+ public partial class ColourfulLightTheme
+ {
+ private void CloseWindow_Event(object sender, RoutedEventArgs e)
+ {
+ if (e.Source != null)
+ try { CloseWind(Window.GetWindow((FrameworkElement)e.Source)); } catch { }
+ }
+ private void AutoMinimize_Event(object sender, RoutedEventArgs e)
+ {
+ if (e.Source != null)
+ try { MaximizeRestore(Window.GetWindow((FrameworkElement)e.Source)); } catch { }
+ }
+ private void Minimize_Event(object sender, RoutedEventArgs e)
+ {
+ if (e.Source != null)
+ try { MinimizeWind(Window.GetWindow((FrameworkElement)e.Source)); } catch { }
+ }
+
+ public void CloseWind(Window window) => window.Close();
+ public void MaximizeRestore(Window window)
+ {
+ if (window.WindowState == WindowState.Maximized)
+ window.WindowState = WindowState.Normal;
+ else if (window.WindowState == WindowState.Normal)
+ window.WindowState = WindowState.Maximized;
+ }
+ public void MinimizeWind(Window window) => window.WindowState = WindowState.Minimized;
+ }
+}
diff --git a/DamagePrinter/DamagePrinterGUI/Themes/DarkTheme.xaml b/DamagePrinter/DamagePrinterGUI/Themes/DarkTheme.xaml
new file mode 100644
index 0000000..8e989c6
--- /dev/null
+++ b/DamagePrinter/DamagePrinterGUI/Themes/DarkTheme.xaml
@@ -0,0 +1,4467 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+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
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/DamagePrinter/DamagePrinterGUI/Themes/DarkTheme.xaml.cs b/DamagePrinter/DamagePrinterGUI/Themes/DarkTheme.xaml.cs
new file mode 100644
index 0000000..b3547ba
--- /dev/null
+++ b/DamagePrinter/DamagePrinterGUI/Themes/DarkTheme.xaml.cs
@@ -0,0 +1,33 @@
+using System.Windows;
+
+namespace REghZyFramework.Themes
+{
+ public partial class DarkTheme
+ {
+ private void CloseWindow_Event(object sender, RoutedEventArgs e)
+ {
+ if (e.Source != null)
+ try { CloseWind(Window.GetWindow((FrameworkElement)e.Source)); } catch { }
+ }
+ private void AutoMinimize_Event(object sender, RoutedEventArgs e)
+ {
+ if (e.Source != null)
+ try { MaximizeRestore(Window.GetWindow((FrameworkElement)e.Source)); } catch { }
+ }
+ private void Minimize_Event(object sender, RoutedEventArgs e)
+ {
+ if (e.Source != null)
+ try { MinimizeWind(Window.GetWindow((FrameworkElement)e.Source)); } catch { }
+ }
+
+ public void CloseWind(Window window) => window.Close();
+ public void MaximizeRestore(Window window)
+ {
+ if (window.WindowState == WindowState.Maximized)
+ window.WindowState = WindowState.Normal;
+ else if (window.WindowState == WindowState.Normal)
+ window.WindowState = WindowState.Maximized;
+ }
+ public void MinimizeWind(Window window) => window.WindowState = WindowState.Minimized;
+ }
+}
diff --git a/DamagePrinter/DamagePrinterGUI/Themes/LightTheme.xaml b/DamagePrinter/DamagePrinterGUI/Themes/LightTheme.xaml
new file mode 100644
index 0000000..eb87521
--- /dev/null
+++ b/DamagePrinter/DamagePrinterGUI/Themes/LightTheme.xaml
@@ -0,0 +1,4452 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+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
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/DamagePrinter/DamagePrinterGUI/Themes/LightTheme.xaml.cs b/DamagePrinter/DamagePrinterGUI/Themes/LightTheme.xaml.cs
new file mode 100644
index 0000000..e6ce7b4
--- /dev/null
+++ b/DamagePrinter/DamagePrinterGUI/Themes/LightTheme.xaml.cs
@@ -0,0 +1,33 @@
+using System.Windows;
+
+namespace REghZyFramework.Themes
+{
+ public partial class LightTheme
+ {
+ private void CloseWindow_Event(object sender, RoutedEventArgs e)
+ {
+ if (e.Source != null)
+ try { CloseWind(Window.GetWindow((FrameworkElement)e.Source)); } catch { }
+ }
+ private void AutoMinimize_Event(object sender, RoutedEventArgs e)
+ {
+ if (e.Source != null)
+ try { MaximizeRestore(Window.GetWindow((FrameworkElement)e.Source)); } catch { }
+ }
+ private void Minimize_Event(object sender, RoutedEventArgs e)
+ {
+ if (e.Source != null)
+ try { MinimizeWind(Window.GetWindow((FrameworkElement)e.Source)); } catch { }
+ }
+
+ public void CloseWind(Window window) => window.Close();
+ public void MaximizeRestore(Window window)
+ {
+ if (window.WindowState == WindowState.Maximized)
+ window.WindowState = WindowState.Normal;
+ else if (window.WindowState == WindowState.Normal)
+ window.WindowState = WindowState.Maximized;
+ }
+ public void MinimizeWind(Window window) => window.WindowState = WindowState.Minimized;
+ }
+}
diff --git a/DamagePrinter/DamagePrinterGUI/Themes/ThemesController.cs b/DamagePrinter/DamagePrinterGUI/Themes/ThemesController.cs
new file mode 100644
index 0000000..6c88af5
--- /dev/null
+++ b/DamagePrinter/DamagePrinterGUI/Themes/ThemesController.cs
@@ -0,0 +1,46 @@
+using System;
+using System.Windows;
+
+namespace REghZyFramework.Themes
+{
+ public static class ThemesController
+ {
+ public enum ThemeTypes
+ {
+ Light, ColourfulLight,
+ Dark, ColourfulDark
+ }
+
+ public static ThemeTypes CurrentTheme { get; set; }
+
+ private static ResourceDictionary ThemeDictionary
+ {
+ get { return Application.Current.Resources.MergedDictionaries[0]; }
+ set { Application.Current.Resources.MergedDictionaries[0] = value; }
+ }
+
+ private static void ChangeTheme(Uri uri)
+ {
+ ThemeDictionary = new ResourceDictionary() { Source = uri };
+ }
+ public static void SetTheme(ThemeTypes theme)
+ {
+ string themeName = null;
+ CurrentTheme = theme;
+ switch (theme)
+ {
+ case ThemeTypes.Dark: themeName = "DarkTheme"; break;
+ case ThemeTypes.Light: themeName = "LightTheme"; break;
+ case ThemeTypes.ColourfulDark: themeName = "ColourfulDarkTheme"; break;
+ case ThemeTypes.ColourfulLight: themeName = "ColourfulLightTheme"; break;
+ }
+
+ try
+ {
+ if (!string.IsNullOrEmpty(themeName))
+ ChangeTheme(new Uri($"Themes/{themeName}.xaml", UriKind.Relative));
+ }
+ catch { }
+ }
+ }
+}