From e4704455918a3d97d017fb5968fe9a3a08d2e58b Mon Sep 17 00:00:00 2001 From: DB p Date: Wed, 23 Nov 2022 12:02:10 +0900 Subject: [PATCH] Adjust Base/Light Xaml / Add property /Fix Diffrence preview --- Flow.Launcher/MainWindow.xaml | 238 ++++++++++---------- Flow.Launcher/ResultListBox.xaml | 41 ++-- Flow.Launcher/Themes/Base.xaml | 27 ++- Flow.Launcher/Themes/Light.xaml | 154 +++++++++---- Flow.Launcher/ViewModel/ResultsViewModel.cs | 2 - 5 files changed, 284 insertions(+), 178 deletions(-) diff --git a/Flow.Launcher/MainWindow.xaml b/Flow.Launcher/MainWindow.xaml index 17444aae8..69e52003d 100644 --- a/Flow.Launcher/MainWindow.xaml +++ b/Flow.Launcher/MainWindow.xaml @@ -1,4 +1,5 @@ - - - - - - + + + + - - - - - - - - - - - - + + - - - + + - - - - - - - - + - - - - - - - - - - - - + - - - - + + + - - + - + - + - + - - + - + @@ -228,19 +242,23 @@ - - - - - - - - - - + + + - @@ -323,16 +335,14 @@ - - - + + + - @@ -341,16 +351,14 @@ - - - + + + - diff --git a/Flow.Launcher/ResultListBox.xaml b/Flow.Launcher/ResultListBox.xaml index 691158630..bd6445472 100644 --- a/Flow.Launcher/ResultListBox.xaml +++ b/Flow.Launcher/ResultListBox.xaml @@ -7,7 +7,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:vm="clr-namespace:Flow.Launcher.ViewModel" MaxHeight="{Binding MaxHeight}" - Margin="{Binding Margin}" + Margin="{DynamicResource ResultMargin}" HorizontalContentAlignment="Stretch" d:DataContext="{d:DesignInstance vm:ResultsViewModel}" d:DesignHeight="100" @@ -17,6 +17,10 @@ ItemsSource="{Binding Results}" KeyboardNavigation.DirectionalNavigation="Cycle" PreviewMouseDown="ListBox_PreviewMouseDown" + PreviewMouseLeftButtonDown="ResultList_PreviewMouseLeftButtonDown" + PreviewMouseLeftButtonUp="ResultListBox_OnPreviewMouseUp" + PreviewMouseMove="ResultList_MouseMove" + PreviewMouseRightButtonDown="ResultListBox_OnPreviewMouseRightButtonDown" SelectedIndex="{Binding SelectedIndex, Mode=TwoWay}" SelectedItem="{Binding SelectedItem, Mode=TwoWay}" SelectionChanged="OnSelectionChanged" @@ -25,17 +29,12 @@ VirtualizingStackPanel.IsVirtualizing="True" VirtualizingStackPanel.VirtualizationMode="Standard" Visibility="{Binding Visbility}" - mc:Ignorable="d" - PreviewMouseMove="ResultList_MouseMove" - PreviewMouseLeftButtonDown="ResultList_PreviewMouseLeftButtonDown" - PreviewMouseLeftButtonUp="ResultListBox_OnPreviewMouseUp" - PreviewMouseRightButtonDown="ResultListBox_OnPreviewMouseRightButtonDown"> + mc:Ignorable="d"> -