From 8fa34917aab8ed9b1c46c96436c8fbb1d5efb111 Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Wed, 26 Feb 2025 21:22:17 +0800 Subject: [PATCH] Redesgin settings panel for calculator plugin --- .../Views/CalculatorSettings.xaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Plugins/Flow.Launcher.Plugin.Calculator/Views/CalculatorSettings.xaml b/Plugins/Flow.Launcher.Plugin.Calculator/Views/CalculatorSettings.xaml index d6237c6da..ceee3897c 100644 --- a/Plugins/Flow.Launcher.Plugin.Calculator/Views/CalculatorSettings.xaml +++ b/Plugins/Flow.Launcher.Plugin.Calculator/Views/CalculatorSettings.xaml @@ -17,7 +17,7 @@ - + @@ -30,7 +30,7 @@ @@ -39,8 +39,9 @@ Grid.Row="0" Grid.Column="1" MaxWidth="300" - Margin="10,5,0,5" + Margin="{StaticResource SettingPanelItemRightTopBottomMargin}" HorizontalAlignment="Left" + VerticalAlignment="Center" ItemsSource="{Binding Source={ui:EnumBindingSource {x:Type calculator:DecimalSeparator}}}" SelectedItem="{Binding Settings.DecimalSeparator}"> @@ -53,7 +54,7 @@ @@ -61,8 +62,9 @@ x:Name="MaxDecimalPlaces" Grid.Row="1" Grid.Column="1" - Margin="10,5,0,5" + Margin="{StaticResource SettingPanelItemRightTopBottomMargin}" HorizontalAlignment="Left" + VerticalAlignment="Center" ItemsSource="{Binding MaxDecimalPlacesRange}" SelectedItem="{Binding Settings.MaxDecimalPlaces}" />