From 1c1979ee6f4ef00a34a8e7dcf0505433fc7044a1 Mon Sep 17 00:00:00 2001 From: Yusyuriv Date: Fri, 17 May 2024 00:34:23 +0600 Subject: [PATCH] Cleanup SettingsPaneTheme, use custom components in it --- .../SettingPages/Views/SettingsPaneTheme.xaml | 1026 ++++++----------- .../Views/SettingsPaneTheme.xaml.cs | 6 - 2 files changed, 383 insertions(+), 649 deletions(-) diff --git a/Flow.Launcher/SettingPages/Views/SettingsPaneTheme.xaml b/Flow.Launcher/SettingPages/Views/SettingsPaneTheme.xaml index 8ba4d665c..097f7cea6 100644 --- a/Flow.Launcher/SettingPages/Views/SettingsPaneTheme.xaml +++ b/Flow.Launcher/SettingPages/Views/SettingsPaneTheme.xaml @@ -9,6 +9,7 @@ xmlns:ui="http://schemas.modernwpf.com/2019" xmlns:userSettings="clr-namespace:Flow.Launcher.Infrastructure.UserSettings;assembly=Flow.Launcher.Infrastructure" xmlns:viewModels="clr-namespace:Flow.Launcher.SettingPages.ViewModels" + xmlns:ext="clr-namespace:Flow.Launcher.Resources.MarkupExtensions" Title="Theme" d:DataContext="{d:DesignInstance viewModels:SettingsPaneThemeViewModel}" d:DesignHeight="450" @@ -24,33 +25,27 @@ - - - - - - - - - - - + + + + + Background="{Binding PreviewBackground}" + IsHitTestVisible="False"> - + - - - - + + + + + - - - + - - - + @@ -130,622 +122,370 @@ - + + + + - + + + + + + + + + + + + + + + +  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + FontSize="14" + Foreground="{DynamicResource Color04B}" + Text="{Binding ClockText}" /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Maximum="100" + Minimum="0" + TickFrequency="1" + Value="{Binding SoundEffectVolume}" /> - + - - - - - - - -  - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + - - - - - - - - - + + +