|
10 | 10 | <StackPanel Orientation="Vertical" Margin="8,0"> |
11 | 11 | <TextBlock FontSize="18" |
12 | 12 | Classes="bold" |
13 | | - Text="{DynamicResource Text.Push.Title}"/> |
| 13 | + Text="{DynamicResource Text.Push.Title}" /> |
14 | 14 |
|
15 | 15 | <Grid Margin="0,16,0,0" RowDefinitions="32,32,32,Auto,Auto,32,32" ColumnDefinitions="130,*"> |
16 | 16 | <TextBlock Grid.Row="0" Grid.Column="0" |
17 | 17 | HorizontalAlignment="Right" VerticalAlignment="Center" |
18 | 18 | Margin="0,0,8,0" |
19 | | - Text="{DynamicResource Text.Push.Local}"/> |
| 19 | + Text="{DynamicResource Text.Push.Local}" /> |
20 | 20 | <ComboBox Grid.Row="0" Grid.Column="1" |
21 | 21 | Height="28" Padding="8,0" |
22 | 22 | VerticalAlignment="Center" HorizontalAlignment="Stretch" |
|
28 | 28 | <DataTemplate x:DataType="{x:Type m:Branch}"> |
29 | 29 | <StackPanel Orientation="Horizontal" Height="20" VerticalAlignment="Center"> |
30 | 30 | <Path Margin="0,0,8,0" Width="14" Height="14" Fill="{DynamicResource Brush.FG1}" Data="{StaticResource Icons.Branch}"/> |
31 | | - <TextBlock Text="{Binding Name}"/> |
| 31 | + <TextBlock Text="{Binding Name}" /> |
32 | 32 | </StackPanel> |
33 | 33 | </DataTemplate> |
34 | 34 | </ComboBox.ItemTemplate> |
35 | 35 |
|
36 | 36 | <ComboBox.ItemContainerTheme> |
37 | 37 | <ControlTheme TargetType="ComboBoxItem" x:DataType="m:Branch" BasedOn="{StaticResource {x:Type ComboBoxItem}}"> |
38 | | - <Setter Property="TextSearch.Text" Value="{Binding Name}"/> |
| 38 | + <Setter Property="TextSearch.Text" Value="{Binding Name}" /> |
39 | 39 | </ControlTheme> |
40 | 40 | </ComboBox.ItemContainerTheme> |
41 | 41 | </ComboBox> |
42 | 42 |
|
43 | 43 | <TextBlock Grid.Row="1" Grid.Column="0" |
44 | 44 | HorizontalAlignment="Right" VerticalAlignment="Center" |
45 | 45 | Margin="0,0,8,0" |
46 | | - Text="{DynamicResource Text.Push.Remote}"/> |
| 46 | + Text="{DynamicResource Text.Push.Remote}" /> |
47 | 47 | <ComboBox Grid.Row="1" Grid.Column="1" |
48 | 48 | Height="28" Padding="8,0" |
49 | 49 | VerticalAlignment="Center" HorizontalAlignment="Stretch" |
|
53 | 53 | <DataTemplate x:DataType="{x:Type m:Remote}"> |
54 | 54 | <StackPanel Orientation="Horizontal" Height="20" VerticalAlignment="Center"> |
55 | 55 | <Path Margin="0,2,8,0" Width="14" Height="14" Fill="{DynamicResource Brush.FG1}" Data="{StaticResource Icons.Remote}"/> |
56 | | - <TextBlock Text="{Binding Name}"/> |
| 56 | + <TextBlock Text="{Binding Name}" /> |
57 | 57 | </StackPanel> |
58 | 58 | </DataTemplate> |
59 | 59 | </ComboBox.ItemTemplate> |
|
62 | 62 | <TextBlock Grid.Row="2" Grid.Column="0" |
63 | 63 | HorizontalAlignment="Right" VerticalAlignment="Center" |
64 | 64 | Margin="0,0,8,0" |
65 | | - Text="{DynamicResource Text.Push.To}"/> |
66 | | - <ComboBox Grid.Row="2" Grid.Column="1" |
67 | | - Height="28" Padding="8,0" |
68 | | - VerticalAlignment="Center" HorizontalAlignment="Stretch" |
69 | | - ItemsSource="{Binding RemoteBranches}" |
70 | | - IsTextSearchEnabled="True" |
71 | | - SelectedItem="{Binding SelectedRemoteBranch, Mode=TwoWay}"> |
72 | | - <ComboBox.ItemTemplate> |
73 | | - <DataTemplate x:DataType="{x:Type m:Branch}"> |
74 | | - <StackPanel Orientation="Horizontal" Height="20" VerticalAlignment="Center"> |
75 | | - <Path Margin="0,0,8,0" Width="14" Height="14" Fill="{DynamicResource Brush.FG1}" Data="{StaticResource Icons.Branch}"/> |
76 | | - <TextBlock Text="{Binding Name}" VerticalAlignment="Center"/> |
77 | | - <Border Height="14" |
78 | | - CornerRadius="7" |
79 | | - Margin="4,0,0,0" Padding="6,0" |
80 | | - VerticalAlignment="Center" |
81 | | - Background="Green" |
82 | | - IsVisible="{Binding Head, Converter={x:Static StringConverters.IsNullOrEmpty}}"> |
83 | | - <TextBlock Text="NEW" FontSize="9" FontFamily="{DynamicResource Fonts.Monospace}" Foreground="White" VerticalAlignment="Center"/> |
84 | | - </Border> |
85 | | - </StackPanel> |
86 | | - </DataTemplate> |
87 | | - </ComboBox.ItemTemplate> |
| 65 | + Text="{DynamicResource Text.Push.To}" /> |
88 | 66 |
|
89 | | - <ComboBox.ItemContainerTheme> |
90 | | - <ControlTheme TargetType="ComboBoxItem" x:DataType="m:Branch" BasedOn="{StaticResource {x:Type ComboBoxItem}}"> |
91 | | - <Setter Property="TextSearch.Text" Value="{Binding Name}"/> |
92 | | - </ControlTheme> |
93 | | - </ComboBox.ItemContainerTheme> |
94 | | - </ComboBox> |
| 67 | + <TextBox Grid.Row="2" Grid.Column="1" |
| 68 | + Height="28" Padding="8,0" |
| 69 | + CornerRadius="3" |
| 70 | + Text="{Binding SelectedRemoteBranchName, Mode=TwoWay}"> |
| 71 | + <TextBox.InnerLeftContent> |
| 72 | + <Path Margin="8,0,0,0" Width="14" Height="14" Fill="{DynamicResource Brush.FG1}" Data="{StaticResource Icons.Branch}" /> |
| 73 | + </TextBox.InnerLeftContent> |
| 74 | + <TextBox.InnerRightContent> |
| 75 | + <Border Height="14" |
| 76 | + Margin="0,0,8,0" |
| 77 | + CornerRadius="7" |
| 78 | + Padding="6,0" |
| 79 | + VerticalAlignment="Center" |
| 80 | + Background="Green" |
| 81 | + IsVisible="{Binding SelectedRemoteBranch.Head, Converter={x:Static StringConverters.IsNullOrEmpty}}"> |
| 82 | + <TextBlock Text="NEW" |
| 83 | + FontSize="9" |
| 84 | + FontFamily="{DynamicResource Fonts.Monospace}" |
| 85 | + Foreground="White" |
| 86 | + VerticalAlignment="Center" /> |
| 87 | + </Border> |
| 88 | + </TextBox.InnerRightContent> |
| 89 | + </TextBox> |
95 | 90 |
|
96 | 91 | <CheckBox Grid.Row="3" Grid.Column="1" |
97 | 92 | Height="32" |
98 | 93 | Content="{DynamicResource Text.Push.Tracking}" |
99 | 94 | IsChecked="{Binding Tracking, Mode=TwoWay}" |
100 | 95 | IsVisible="{Binding IsSetTrackOptionVisible}" |
101 | | - ToolTip.Tip="-u"/> |
| 96 | + ToolTip.Tip="-u" /> |
102 | 97 |
|
103 | 98 | <CheckBox Grid.Row="4" Grid.Column="1" |
104 | 99 | Height="32" |
105 | 100 | Content="{DynamicResource Text.Push.CheckSubmodules}" |
106 | 101 | IsChecked="{Binding CheckSubmodules, Mode=TwoWay}" |
107 | 102 | IsVisible="{Binding IsCheckSubmodulesVisible}" |
108 | | - ToolTip.Tip="--recurse-submodules=check"/> |
| 103 | + ToolTip.Tip="--recurse-submodules=check" /> |
109 | 104 |
|
110 | 105 | <CheckBox Grid.Row="5" Grid.Column="1" |
111 | 106 | Content="{DynamicResource Text.Push.WithAllTags}" |
112 | 107 | IsChecked="{Binding PushAllTags, Mode=TwoWay}" |
113 | | - ToolTip.Tip="--tags"/> |
| 108 | + ToolTip.Tip="--tags" /> |
114 | 109 |
|
115 | 110 | <CheckBox Grid.Row="6" Grid.Column="1" |
116 | 111 | Content="{DynamicResource Text.Push.Force}" |
117 | 112 | IsChecked="{Binding ForcePush, Mode=TwoWay}" |
118 | | - ToolTip.Tip="--force-with-lease"/> |
| 113 | + ToolTip.Tip="--force-with-lease" /> |
119 | 114 | </Grid> |
120 | 115 | </StackPanel> |
121 | 116 | </UserControl> |
0 commit comments