From 8e65e5109987ee865947ba542fb6d7ab50ec86a3 Mon Sep 17 00:00:00 2001 From: RuntimeRascal Date: Sun, 30 Nov 2025 12:41:34 -0700 Subject: [PATCH 1/8] chore: refactor settings view into multiple user controls --- Src/GhostDraw/Styles/CyberpunkStyles.xaml | 337 ++++++++ Src/GhostDraw/Views/SettingsWindow.xaml | 809 +----------------- Src/GhostDraw/Views/SettingsWindow.xaml.cs | 769 ++--------------- .../UserControls/DrawingSettingsControl.xaml | 237 +++++ .../DrawingSettingsControl.xaml.cs | 323 +++++++ .../UserControls/HotkeySettingsControl.xaml | 130 +++ .../HotkeySettingsControl.xaml.cs | 230 +++++ .../UserControls/LoggingSettingsControl.xaml | 45 + .../LoggingSettingsControl.xaml.cs | 99 +++ .../UserControls/ModeSettingsControl.xaml | 49 ++ .../UserControls/ModeSettingsControl.xaml.cs | 61 ++ 11 files changed, 1588 insertions(+), 1501 deletions(-) create mode 100644 Src/GhostDraw/Styles/CyberpunkStyles.xaml create mode 100644 Src/GhostDraw/Views/UserControls/DrawingSettingsControl.xaml create mode 100644 Src/GhostDraw/Views/UserControls/DrawingSettingsControl.xaml.cs create mode 100644 Src/GhostDraw/Views/UserControls/HotkeySettingsControl.xaml create mode 100644 Src/GhostDraw/Views/UserControls/HotkeySettingsControl.xaml.cs create mode 100644 Src/GhostDraw/Views/UserControls/LoggingSettingsControl.xaml create mode 100644 Src/GhostDraw/Views/UserControls/LoggingSettingsControl.xaml.cs create mode 100644 Src/GhostDraw/Views/UserControls/ModeSettingsControl.xaml create mode 100644 Src/GhostDraw/Views/UserControls/ModeSettingsControl.xaml.cs diff --git a/Src/GhostDraw/Styles/CyberpunkStyles.xaml b/Src/GhostDraw/Styles/CyberpunkStyles.xaml new file mode 100644 index 0000000..d4dd3eb --- /dev/null +++ b/Src/GhostDraw/Styles/CyberpunkStyles.xaml @@ -0,0 +1,337 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Src/GhostDraw/Views/SettingsWindow.xaml b/Src/GhostDraw/Views/SettingsWindow.xaml index bf2e7f4..91be169 100644 --- a/Src/GhostDraw/Views/SettingsWindow.xaml +++ b/Src/GhostDraw/Views/SettingsWindow.xaml @@ -1,6 +1,7 @@  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + @@ -479,474 +152,8 @@ - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + +