Skip to content

Commit 8fa3491

Browse files
committed
Redesgin settings panel for calculator plugin
1 parent 51e62d2 commit 8fa3491

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Plugins/Flow.Launcher.Plugin.Calculator/Views/CalculatorSettings.xaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<core:LocalizationConverter x:Key="LocalizationConverter" />
1818
</UserControl.Resources>
1919

20-
<Grid Margin="70,14,0,14">
20+
<Grid Margin="{StaticResource SettingPanelMargin}">
2121
<Grid.RowDefinitions>
2222
<RowDefinition Height="auto" />
2323
<RowDefinition Height="auto" />
@@ -30,7 +30,7 @@
3030
<TextBlock
3131
Grid.Row="0"
3232
Grid.Column="0"
33-
Margin="0,0,10,0"
33+
Margin="{StaticResource SettingPanelItemRightTopBottomMargin}"
3434
VerticalAlignment="Center"
3535
FontSize="14"
3636
Text="{DynamicResource flowlauncher_plugin_calculator_output_decimal_seperator}" />
@@ -39,8 +39,9 @@
3939
Grid.Row="0"
4040
Grid.Column="1"
4141
MaxWidth="300"
42-
Margin="10,5,0,5"
42+
Margin="{StaticResource SettingPanelItemRightTopBottomMargin}"
4343
HorizontalAlignment="Left"
44+
VerticalAlignment="Center"
4445
ItemsSource="{Binding Source={ui:EnumBindingSource {x:Type calculator:DecimalSeparator}}}"
4546
SelectedItem="{Binding Settings.DecimalSeparator}">
4647
<ComboBox.ItemTemplate>
@@ -53,16 +54,17 @@
5354
<TextBlock
5455
Grid.Row="1"
5556
Grid.Column="0"
56-
Margin="0,0,10,0"
57+
Margin="{StaticResource SettingPanelItemRightTopBottomMargin}"
5758
VerticalAlignment="Center"
5859
FontSize="14"
5960
Text="{DynamicResource flowlauncher_plugin_calculator_max_decimal_places}" />
6061
<ComboBox
6162
x:Name="MaxDecimalPlaces"
6263
Grid.Row="1"
6364
Grid.Column="1"
64-
Margin="10,5,0,5"
65+
Margin="{StaticResource SettingPanelItemRightTopBottomMargin}"
6566
HorizontalAlignment="Left"
67+
VerticalAlignment="Center"
6668
ItemsSource="{Binding MaxDecimalPlacesRange}"
6769
SelectedItem="{Binding Settings.MaxDecimalPlaces}" />
6870

0 commit comments

Comments
 (0)