From 64f02c3fd7ee40f673c36aabee44f67a7311899b Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Thu, 27 Feb 2025 18:22:56 +0800 Subject: [PATCH] Redesign settings panel for sys plugin & Improve design styles --- Flow.Launcher.Core/Plugin/JsonRPCPluginSettings.cs | 2 ++ .../Controls/InstalledPluginDisplayKeyword.xaml | 6 +++--- Flow.Launcher/Resources/CustomControlTemplate.xaml | 9 +++++++-- .../Views/CalculatorSettings.xaml | 4 ++-- Plugins/Flow.Launcher.Plugin.Sys/SysSettings.xaml | 4 ++-- 5 files changed, 16 insertions(+), 9 deletions(-) diff --git a/Flow.Launcher.Core/Plugin/JsonRPCPluginSettings.cs b/Flow.Launcher.Core/Plugin/JsonRPCPluginSettings.cs index 2a4b22bf3..b1888e574 100644 --- a/Flow.Launcher.Core/Plugin/JsonRPCPluginSettings.cs +++ b/Flow.Launcher.Core/Plugin/JsonRPCPluginSettings.cs @@ -30,6 +30,8 @@ namespace Flow.Launcher.Core.Plugin private JsonStorage> _storage; // maybe move to resource? + private static Thickness settingPanelMargin1 = (Thickness)System.Windows.Application.Current.FindResource("SettingPanelMargin"); + private static readonly Thickness settingControlMargin = new(0, 9, 18, 9); private static readonly Thickness settingCheckboxMargin = new(0, 9, 9, 9); private static readonly Thickness settingPanelMargin = new(0, 0, 0, 0); diff --git a/Flow.Launcher/Resources/Controls/InstalledPluginDisplayKeyword.xaml b/Flow.Launcher/Resources/Controls/InstalledPluginDisplayKeyword.xaml index 3944f6b75..d2d2afa09 100644 --- a/Flow.Launcher/Resources/Controls/InstalledPluginDisplayKeyword.xaml +++ b/Flow.Launcher/Resources/Controls/InstalledPluginDisplayKeyword.xaml @@ -20,7 +20,7 @@ Visibility="{Binding ActionKeywordsVisibility}">