From 29b74624c7c2b1dee6f84be64f14d00a7462ac22 Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Sat, 7 Jun 2025 13:41:15 +0800 Subject: [PATCH] Add setting ui --- .../Views/ExplorerSettings.xaml | 128 +++++++++++------- 1 file changed, 78 insertions(+), 50 deletions(-) diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml b/Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml index 47d53d463..2d1e5bd8a 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml @@ -92,41 +92,43 @@ + Background="{TemplateBinding Background}" + BorderBrush="{TemplateBinding BorderBrush}" + BorderThickness="{TemplateBinding BorderThickness}" + SnapsToDevicePixels="true"> - + x:Name="HeaderSite" + MinWidth="0" + MinHeight="0" + Margin="0" + Padding="{TemplateBinding Padding}" + HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" + VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" + Content="{TemplateBinding Header}" + ContentTemplate="{TemplateBinding HeaderTemplate}" + ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}" + DockPanel.Dock="Top" + FocusVisualStyle="{StaticResource ExpanderHeaderFocusVisual}" + FontFamily="{TemplateBinding FontFamily}" + FontSize="{TemplateBinding FontSize}" + FontStretch="{TemplateBinding FontStretch}" + FontStyle="{TemplateBinding FontStyle}" + FontWeight="{TemplateBinding FontWeight}" + Foreground="{TemplateBinding Foreground}" + IsChecked="{Binding IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" + Style="{StaticResource ExpanderHeaderRightArrowStyle}" /> + + x:Name="ExpandSite" + Margin="{TemplateBinding Padding}" + HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" + VerticalAlignment="{TemplateBinding VerticalContentAlignment}" + DockPanel.Dock="Bottom" + Focusable="false" /> @@ -141,13 +143,17 @@ + Storyboard.TargetName="ContentPresenterBorder" + Storyboard.TargetProperty="(Border.LayoutTransform).(ScaleTransform.ScaleY)" + From="0.0" + To="1.0" + Duration="0:0:0" /> + Storyboard.TargetName="ContentPresenterBorder" + Storyboard.TargetProperty="(Border.Opacity)" + From="0.0" + To="1.0" + Duration="0:0:0" /> @@ -155,13 +161,17 @@ + Storyboard.TargetName="ContentPresenterBorder" + Storyboard.TargetProperty="(Border.LayoutTransform).(ScaleTransform.ScaleY)" + From="1.0" + To="0.0" + Duration="0:0:0" /> + Storyboard.TargetName="ContentPresenterBorder" + Storyboard.TargetProperty="(Border.Opacity)" + From="1.0" + To="0.0" + Duration="0:0:0" /> @@ -734,10 +744,28 @@ BorderThickness="1" DragEnter="lbxAccessLinks_DragEnter" Drop="LbxAccessLinks_OnDrop" - ItemTemplate="{StaticResource ListViewTemplateAccessLinks}" ItemsSource="{Binding Settings.QuickAccessLinks}" Loaded="lbxAccessLinks_Loaded" - SelectedItem="{Binding SelectedQuickAccessLink}" /> + SelectedItem="{Binding SelectedQuickAccessLink}"> + + + + + + + + + + + + + + + + + + +