|
21 | 21 | Height="28" |
22 | 22 | CornerRadius="3" |
23 | 23 | Text="{Binding Pattern, Mode=TwoWay}" |
24 | | - v:AutoFocusBehaviour.IsEnabled="True"/> |
| 24 | + v:AutoFocusBehaviour.IsEnabled="True"> |
| 25 | + <TextBox.InnerLeftContent> |
| 26 | + <Path Width="12" Height="12" Margin="6,0,2,0" Data="{StaticResource Icons.Pattern}" Fill="{DynamicResource Brush.FG2}"/> |
| 27 | + </TextBox.InnerLeftContent> |
| 28 | + </TextBox> |
25 | 29 |
|
26 | 30 | <TextBlock Grid.Row="1" Grid.Column="0" |
27 | 31 | HorizontalAlignment="Right" VerticalAlignment="Center" |
28 | 32 | Margin="0,0,8,0" |
29 | 33 | Text="{DynamicResource Text.AddToIgnore.Storage}"/> |
30 | 34 | <ComboBox Grid.Row="1" Grid.Column="1" |
31 | | - Height="28" Padding="8,0" |
| 35 | + Height="28" Padding="4,0" |
32 | 36 | VerticalAlignment="Center" HorizontalAlignment="Stretch" |
33 | 37 | ItemsSource="{Binding Source={x:Static m:GitIgnoreFile.Supported}}" |
34 | 38 | SelectedItem="{Binding StorageFile, Mode=TwoWay}"> |
35 | 39 | <ComboBox.ItemTemplate> |
36 | 40 | <DataTemplate DataType="m:GitIgnoreFile"> |
37 | | - <TextBlock VerticalAlignment="Center"> |
38 | | - <Run Text="{Binding File, Mode=OneWay}"/> |
39 | | - <Run Text="•" Foreground="{DynamicResource Brush.FG2}"/> |
40 | | - <Run Text="{Binding Desc, Mode=OneWay}" Foreground="{DynamicResource Brush.FG2}"/> |
41 | | - </TextBlock> |
| 41 | + <Grid ColumnDefinitions="20,*"> |
| 42 | + <Path Grid.Column="0" |
| 43 | + Width="12" Height="12" |
| 44 | + Data="{StaticResource Icons.File}" |
| 45 | + Fill="{DynamicResource Brush.FG2}"/> |
| 46 | + |
| 47 | + <TextBlock Grid.Column="1" VerticalAlignment="Center"> |
| 48 | + <Run Text="{Binding File, Mode=OneWay}"/> |
| 49 | + <Run Text="•" Foreground="{DynamicResource Brush.FG2}"/> |
| 50 | + <Run Text="{Binding Desc, Mode=OneWay}" Foreground="{DynamicResource Brush.FG2}"/> |
| 51 | + </TextBlock> |
| 52 | + </Grid> |
42 | 53 | </DataTemplate> |
43 | 54 | </ComboBox.ItemTemplate> |
44 | 55 | </ComboBox> |
|
0 commit comments