From a65e89b86fbe3e1134c1a098f9af85ed4ea8bf71 Mon Sep 17 00:00:00 2001 From: DB p Date: Sat, 5 Apr 2025 01:06:06 +0900 Subject: [PATCH] Adjust advanced control UI --- .../SettingsPanePluginsViewModel.cs | 22 +++++ .../Views/SettingsPaneGeneral.xaml | 21 ++++ .../Views/SettingsPanePlugins.xaml | 97 +++++++++++++------ .../Views/SettingsPanePlugins.xaml.cs | 9 ++ 4 files changed, 117 insertions(+), 32 deletions(-) diff --git a/Flow.Launcher/SettingPages/ViewModels/SettingsPanePluginsViewModel.cs b/Flow.Launcher/SettingPages/ViewModels/SettingsPanePluginsViewModel.cs index 5cd14ba7e..69d31a98d 100644 --- a/Flow.Launcher/SettingPages/ViewModels/SettingsPanePluginsViewModel.cs +++ b/Flow.Launcher/SettingPages/ViewModels/SettingsPanePluginsViewModel.cs @@ -14,6 +14,28 @@ public class SettingsPanePluginsViewModel : BaseModel { private readonly Settings _settings; + public void UpdateDisplayModeFromSelection() + { + switch (CurrentDisplayMode) + { + case "OnOff": + IsOnOffSelected = true; + IsPrioritySelected = false; + IsSearchDelaySelected = false; + break; + case "Priority": + IsOnOffSelected = false; + IsPrioritySelected = true; + IsSearchDelaySelected = false; + break; + case "SearchDelay": + IsOnOffSelected = false; + IsPrioritySelected = false; + IsSearchDelaySelected = true; + break; + } + } + private bool _isOnOffSelected = true; public bool IsOnOffSelected { diff --git a/Flow.Launcher/SettingPages/Views/SettingsPaneGeneral.xaml b/Flow.Launcher/SettingPages/Views/SettingsPaneGeneral.xaml index 3f8272dda..e36c647a2 100644 --- a/Flow.Launcher/SettingPages/Views/SettingsPaneGeneral.xaml +++ b/Flow.Launcher/SettingPages/Views/SettingsPaneGeneral.xaml @@ -196,6 +196,27 @@ + + + + + + + + + @@ -34,34 +34,35 @@ Text="{DynamicResource plugins}" TextAlignment="Left" /> - + + - + + + + +