|
44 | 44 | <TextBlock Classes="tab_header" Text="{DynamicResource Text.Configure.Git}"/> |
45 | 45 | </TabItem.Header> |
46 | 46 |
|
47 | | - <Grid Margin="16,4,16,8" RowDefinitions="32,32,32,32,32,32,32,32,32" ColumnDefinitions="Auto,*"> |
| 47 | + <Grid Margin="16,4,16,8" RowDefinitions="32,32,32,32,32,32,32,32,32,32" ColumnDefinitions="Auto,*"> |
48 | 48 | <TextBlock Grid.Row="0" Grid.Column="0" |
49 | 49 | HorizontalAlignment="Right" VerticalAlignment="Center" |
50 | 50 | Margin="0,0,8,0" |
|
86 | 86 | </ComboBox> |
87 | 87 |
|
88 | 88 | <TextBlock Grid.Row="3" Grid.Column="0" |
| 89 | + HorizontalAlignment="Right" VerticalAlignment="Center" |
| 90 | + Margin="0,0,8,0" |
| 91 | + Text="{DynamicResource Text.Configure.Git.PreferredMergeMode}"/> |
| 92 | + <ComboBox Grid.Row="3" Grid.Column="1" |
| 93 | + Height="28" Padding="8,0" |
| 94 | + VerticalAlignment="Center" HorizontalAlignment="Stretch" |
| 95 | + ItemsSource="{Binding Source={x:Static m:MergeMode.Supported}}" |
| 96 | + SelectedIndex="{Binding PreferredMergeMode, Mode=TwoWay}" |
| 97 | + Grid.IsSharedSizeScope="True"> |
| 98 | + <ComboBox.ItemTemplate> |
| 99 | + <DataTemplate DataType="m:MergeMode"> |
| 100 | + <Grid Height="20"> |
| 101 | + <Grid.ColumnDefinitions> |
| 102 | + <ColumnDefinition Width="Auto" SharedSizeGroup="MergeModeNameColumn"/> |
| 103 | + <ColumnDefinition Width="Auto" SharedSizeGroup="MergeModeDescriptionColumn"/> |
| 104 | + <ColumnDefinition Width="Auto" SharedSizeGroup="MergeModeOptionColumn"/> |
| 105 | + </Grid.ColumnDefinitions> |
| 106 | + |
| 107 | + <TextBlock Grid.Column="0" Text="{Binding Name}"/> |
| 108 | + <TextBlock Grid.Column="1" Text="{Binding Desc}" Margin="8,0" FontSize="11" Foreground="{DynamicResource Brush.FG2}"/> |
| 109 | + <TextBlock Grid.Column="2" Text="{Binding Arg}" HorizontalAlignment="Right" FontSize="11" Foreground="{DynamicResource Brush.FG2}"/> |
| 110 | + </Grid> |
| 111 | + </DataTemplate> |
| 112 | + </ComboBox.ItemTemplate> |
| 113 | + |
| 114 | + <ComboBox.SelectionBoxItemTemplate> |
| 115 | + <DataTemplate DataType="m:MergeMode"> |
| 116 | + <Grid ColumnDefinitions="Auto,*"> |
| 117 | + <TextBlock Grid.Column="0" Text="{Binding Name}" Margin="0,0,8,0"/> |
| 118 | + <TextBlock Grid.Column="1" Text="{Binding Desc}" HorizontalAlignment="Right" FontSize="11" Foreground="{DynamicResource Brush.FG2}"/> |
| 119 | + </Grid> |
| 120 | + </DataTemplate> |
| 121 | + </ComboBox.SelectionBoxItemTemplate> |
| 122 | + </ComboBox> |
| 123 | + |
| 124 | + <TextBlock Grid.Row="4" Grid.Column="0" |
89 | 125 | HorizontalAlignment="Right" VerticalAlignment="Center" |
90 | 126 | Margin="0,0,8,0" |
91 | 127 | Text="{DynamicResource Text.Configure.Proxy}"/> |
92 | | - <TextBox Grid.Row="3" Grid.Column="1" |
| 128 | + <TextBox Grid.Row="4" Grid.Column="1" |
93 | 129 | Height="28" |
94 | 130 | CornerRadius="3" |
95 | 131 | Watermark="{DynamicResource Text.Configure.Proxy.Placeholder}" |
|
101 | 137 | </TextBox.InnerRightContent> |
102 | 138 | </TextBox> |
103 | 139 |
|
104 | | - <TextBlock Grid.Row="4" Grid.Column="0" |
| 140 | + <TextBlock Grid.Row="5" Grid.Column="0" |
105 | 141 | HorizontalAlignment="Right" VerticalAlignment="Center" |
106 | 142 | Margin="0,0,8,0" |
107 | 143 | Text="{DynamicResource Text.Preferences.GPG.UserKey}"/> |
108 | | - <TextBox Grid.Row="4" Grid.Column="1" |
| 144 | + <TextBox Grid.Row="5" Grid.Column="1" |
109 | 145 | Height="28" |
110 | 146 | CornerRadius="3" |
111 | 147 | Watermark="{DynamicResource Text.Preferences.GPG.UserKey.Placeholder}" |
112 | 148 | Text="{Binding GPGUserSigningKey, Mode=TwoWay}"/> |
113 | 149 |
|
114 | | - <CheckBox Grid.Row="5" Grid.Column="1" |
| 150 | + <CheckBox Grid.Row="6" Grid.Column="1" |
115 | 151 | Content="{DynamicResource Text.Preferences.GPG.CommitEnabled}" |
116 | 152 | IsChecked="{Binding GPGCommitSigningEnabled, Mode=TwoWay}"/> |
117 | 153 |
|
118 | | - <CheckBox Grid.Row="6" Grid.Column="1" |
| 154 | + <CheckBox Grid.Row="7" Grid.Column="1" |
119 | 155 | Content="{DynamicResource Text.Preferences.GPG.TagEnabled}" |
120 | 156 | IsChecked="{Binding GPGTagSigningEnabled, Mode=TwoWay}"/> |
121 | 157 |
|
122 | | - <CheckBox Grid.Row="7" Grid.Column="1" |
| 158 | + <CheckBox Grid.Row="8" Grid.Column="1" |
123 | 159 | Content="{DynamicResource Text.Preferences.Git.EnablePruneOnFetch}" |
124 | 160 | IsChecked="{Binding EnablePruneOnFetch, Mode=TwoWay}"/> |
125 | 161 |
|
126 | | - <StackPanel Grid.Row="8" Grid.Column="1" Orientation="Horizontal"> |
| 162 | + <StackPanel Grid.Row="9" Grid.Column="1" Orientation="Horizontal"> |
127 | 163 | <CheckBox x:Name="AutoFetchCheckBox" |
128 | 164 | Content="{DynamicResource Text.Configure.Git.AutoFetch}" |
129 | 165 | IsChecked="{Binding EnableAutoFetch, Mode=TwoWay}"/> |
|
0 commit comments