From 76cff4ec729128a73f5e5b9cd201d9d47f4b9e68 Mon Sep 17 00:00:00 2001 From: Taiizor <41683699+Taiizor@users.noreply.github.com> Date: Sat, 21 Oct 2023 17:28:52 +0300 Subject: [PATCH] Preparing Theme Create Dialog --- .../ViewModels/Windows/MainWindowViewModel.cs | 11 ++ .../Views/Controls/ThemeCreate.xaml | 151 ++++++++++++++++++ .../Views/Controls/ThemeCreate.xaml.cs | 42 +++++ .../Views/Windows/MainWindow.xaml | 1 + .../Portal/Controls/Portal.Controls.DE.xaml | 1 + .../Portal/Controls/Portal.Controls.EN.xaml | 1 + .../Portal/Controls/Portal.Controls.ES.xaml | 1 + .../Portal/Controls/Portal.Controls.FR.xaml | 1 + .../Portal/Controls/Portal.Controls.PL.xaml | 1 + .../Portal/Controls/Portal.Controls.TR.xaml | 1 + .../ThemeCreate/Portal.ThemeCreate.DE.xaml | 9 ++ .../ThemeCreate/Portal.ThemeCreate.EN.xaml | 9 ++ .../ThemeCreate/Portal.ThemeCreate.ES.xaml | 9 ++ .../ThemeCreate/Portal.ThemeCreate.FR.xaml | 9 ++ .../ThemeCreate/Portal.ThemeCreate.PL.xaml | 9 ++ .../ThemeCreate/Portal.ThemeCreate.TR.xaml | 9 ++ .../Sucrose.Shared.Resources.projitems | 24 +++ 17 files changed, 289 insertions(+) create mode 100644 src/Portal/Sucrose.Portal/Views/Controls/ThemeCreate.xaml create mode 100644 src/Portal/Sucrose.Portal/Views/Controls/ThemeCreate.xaml.cs create mode 100644 src/Shared/Sucrose.Shared.Resources/Locales/Portal/Controls/ThemeCreate/Portal.ThemeCreate.DE.xaml create mode 100644 src/Shared/Sucrose.Shared.Resources/Locales/Portal/Controls/ThemeCreate/Portal.ThemeCreate.EN.xaml create mode 100644 src/Shared/Sucrose.Shared.Resources/Locales/Portal/Controls/ThemeCreate/Portal.ThemeCreate.ES.xaml create mode 100644 src/Shared/Sucrose.Shared.Resources/Locales/Portal/Controls/ThemeCreate/Portal.ThemeCreate.FR.xaml create mode 100644 src/Shared/Sucrose.Shared.Resources/Locales/Portal/Controls/ThemeCreate/Portal.ThemeCreate.PL.xaml create mode 100644 src/Shared/Sucrose.Shared.Resources/Locales/Portal/Controls/ThemeCreate/Portal.ThemeCreate.TR.xaml diff --git a/src/Portal/Sucrose.Portal/ViewModels/Windows/MainWindowViewModel.cs b/src/Portal/Sucrose.Portal/ViewModels/Windows/MainWindowViewModel.cs index 59da9f84e..5e9ddc07d 100644 --- a/src/Portal/Sucrose.Portal/ViewModels/Windows/MainWindowViewModel.cs +++ b/src/Portal/Sucrose.Portal/ViewModels/Windows/MainWindowViewModel.cs @@ -15,6 +15,7 @@ using SPEIL = Sucrose.Portal.Extension.ImageLoader; using SPMI = Sucrose.Portal.Manage.Internal; using SPMM = Sucrose.Portal.Manage.Manager; +using SPVCTC = Sucrose.Portal.Views.Controls.ThemeCreate; using SPVCDP = Sucrose.Portal.Views.Controls.DisplayPreferences; using SPVCOA = Sucrose.Portal.Views.Controls.OtherAbout; using SPVCOH = Sucrose.Portal.Views.Controls.OtherHelp; @@ -224,6 +225,16 @@ private async Task OnOtherAbout() OtherAbout.Dispose(); } + [RelayCommand] + private async Task OnCreateWallpaper() + { + SPVCTC ThemeCreate = new(); + + await ThemeCreate.ShowAsync(); + + ThemeCreate.Dispose(); + } + [RelayCommand] private async Task OnDisplayPreferences() { diff --git a/src/Portal/Sucrose.Portal/Views/Controls/ThemeCreate.xaml b/src/Portal/Sucrose.Portal/Views/Controls/ThemeCreate.xaml new file mode 100644 index 000000000..2edb2da69 --- /dev/null +++ b/src/Portal/Sucrose.Portal/Views/Controls/ThemeCreate.xaml @@ -0,0 +1,151 @@ + + + +