|
18 | 18 | <Path Width="15" Height="13" Data="{StaticResource Icons.Folder.Open}"/> |
19 | 19 | </Button> |
20 | 20 | <Button Classes="icon_button" Width="32" Command="{Binding OpenInTerminal}" ToolTip.Tip="{DynamicResource Text.Repository.Terminal}"> |
21 | | - <Path Width="13" Height="13" Data="{StaticResource Icons.Terminal}"/> |
| 21 | + <Path Width="13" Height="13" Data="{StaticResource Icons.Terminal}"/> |
22 | 22 | </Button> |
23 | 23 |
|
24 | 24 | <Button Classes="icon_button" Width="32" ToolTip.Tip="{DynamicResource Text.Repository.OpenWith}"> |
25 | | - <Path Width="13" Height="13" Data="{StaticResource Icons.OpenWith}"/> |
26 | | - <Button.Flyout> |
27 | | - <MenuFlyout Placement="BottomEdgeAlignedLeft" VerticalOffset="-8"> |
28 | | - <MenuItem Header="{DynamicResource Text.Repository.Fleet}" Click="OpenInFleet"> |
29 | | - <MenuItem.Icon> |
30 | | - <Svg Path="/Resources/ExternalToolIcons/fleet_icon.svg" Width="13" Height="13" /> |
31 | | - </MenuItem.Icon> |
32 | | - </MenuItem> |
33 | | - <MenuItem Header="{DynamicResource Text.Repository.VSCode}" Click="OpenInVSCode"> |
34 | | - <MenuItem.Icon> |
35 | | - <Svg Path="/Resources/ExternalToolIcons/vscode_icon.svg" Width="13" Height="13" /> |
36 | | - </MenuItem.Icon> |
37 | | - </MenuItem> |
| 25 | + <Path Width="13" Height="13" Data="{StaticResource Icons.OpenWith}"/> |
| 26 | + <Button.Flyout> |
| 27 | + <MenuFlyout Placement="BottomEdgeAlignedLeft" VerticalOffset="-8"> |
| 28 | + <MenuItem Header="{DynamicResource Text.Repository.Fleet}" Command="{Binding OpenInFleet}"> |
| 29 | + <MenuItem.Icon> |
| 30 | + <Image Source="/Resources/ExternalToolIcons/fleet.png" Width="13" Height="13" /> |
| 31 | + </MenuItem.Icon> |
| 32 | + </MenuItem> |
| 33 | + <MenuItem Header="{DynamicResource Text.Repository.VSCode}" Command="{Binding OpenInVSCode}"> |
| 34 | + <MenuItem.Icon> |
| 35 | + <Image Source="/Resources/ExternalToolIcons/vscode.png" Width="13" Height="13" /> |
| 36 | + </MenuItem.Icon> |
| 37 | + </MenuItem> |
38 | 38 | </MenuFlyout> |
39 | | - </Button.Flyout> |
40 | | - </Button> |
41 | | - <ToggleButton Width="32" |
42 | | - Background="Transparent" |
43 | | - IsChecked="{Binding IsSearching, Mode=TwoWay}" |
44 | | - ToolTip.Tip="{DynamicResource Text.Repository.Search}"> |
45 | | - <Path Width="14" Height="14" Data="{StaticResource Icons.Search}"/> |
46 | | - </ToggleButton> |
47 | | - |
| 39 | + </Button.Flyout> |
| 40 | + </Button> |
| 41 | + <ToggleButton Width="32" |
| 42 | + Background="Transparent" |
| 43 | + IsChecked="{Binding IsSearching, Mode=TwoWay}" |
| 44 | + ToolTip.Tip="{DynamicResource Text.Repository.Search}"> |
| 45 | + <Path Width="14" Height="14" Data="{StaticResource Icons.Search}"/> |
| 46 | + </ToggleButton> |
| 47 | + |
48 | 48 | </StackPanel> |
49 | 49 |
|
50 | 50 | <StackPanel Grid.Column="1" Orientation="Horizontal"> |
|
83 | 83 | </StackPanel> |
84 | 84 |
|
85 | 85 | <StackPanel Grid.Column="2" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,0,4,0"> |
86 | | - <ToggleButton Classes="layout_direction" |
| 86 | + <ToggleButton Classes="layout_direction" |
87 | 87 | Width="32" Height="26" |
88 | 88 | IsChecked="{Binding Source={x:Static vm:Preference.Instance}, Path=UseTwoColumnsLayoutInHistories, Mode=TwoWay}" |
89 | 89 | IsVisible="{Binding SelectedViewIndex, Converter={x:Static c:IntConverters.IsZero}}" |
|
198 | 198 | <TextBlock Classes="monospace" FontSize="10" HorizontalAlignment="Center" Margin="9,0" Text="{Binding UpstreamTrackStatus}"/> |
199 | 199 | </Border> |
200 | 200 |
|
201 | | - <ToggleButton Grid.Column="3" |
202 | | - Classes="filter" |
203 | | - Margin="0,0,8,0" |
204 | | - Background="Transparent" |
205 | | - IsVisible="{Binding IsBranch}" |
206 | | - Checked="OnToggleFilter" |
| 201 | + <ToggleButton Grid.Column="3" |
| 202 | + Classes="filter" |
| 203 | + Margin="0,0,8,0" |
| 204 | + Background="Transparent" |
| 205 | + IsVisible="{Binding IsBranch}" |
| 206 | + Checked="OnToggleFilter" |
207 | 207 | Unchecked="OnToggleFilter" |
208 | 208 | IsChecked="{Binding IsFiltered}"/> |
209 | 209 | </Grid> |
|
230 | 230 | <Setter Property="IsExpanded" Value="{Binding IsExpanded, Mode=TwoWay}"/> |
231 | 231 | </Style> |
232 | 232 | </TreeView.Styles> |
233 | | - |
| 233 | + |
234 | 234 | <TreeView.ItemTemplate> |
235 | 235 | <TreeDataTemplate ItemsSource="{Binding Children}" x:DataType="{x:Type m:BranchTreeNode}"> |
236 | 236 | <Grid Height="24" ColumnDefinitions="Auto,*,Auto" Background="Transparent" ContextRequested="OnRemoteBranchContextMenuRequested"> |
237 | 237 | <Path Grid.Column="0" Classes="folder_icon" Width="10" Height="10" Margin="0,2,0,0" IsVisible="{Binding IsFolder}" VerticalAlignment="Center"/> |
238 | 238 | <Path Grid.Column="0" Width="10" Height="10" Margin="0,4,0,0" Data="{StaticResource Icons.Remote}" IsVisible="{Binding IsRemote}" VerticalAlignment="Center"/> |
239 | 239 | <Path Grid.Column="0" Width="10" Height="10" Data="{StaticResource Icons.Branch}" IsVisible="{Binding IsBranch}" VerticalAlignment="Center"/> |
240 | | - |
| 240 | + |
241 | 241 | <TextBlock Grid.Column="1" Text="{Binding Name}" Classes="monospace" Margin="8,0,4,0"/> |
242 | | - |
243 | | - <ToggleButton Grid.Column="2" |
244 | | - Classes="filter" |
245 | | - Margin="0,0,8,0" |
246 | | - Background="Transparent" |
247 | | - Checked="OnToggleFilter" |
248 | | - Unchecked="OnToggleFilter" |
| 242 | + |
| 243 | + <ToggleButton Grid.Column="2" |
| 244 | + Classes="filter" |
| 245 | + Margin="0,0,8,0" |
| 246 | + Background="Transparent" |
| 247 | + Checked="OnToggleFilter" |
| 248 | + Unchecked="OnToggleFilter" |
249 | 249 | IsVisible="{Binding IsBranch}" |
250 | 250 | IsChecked="{Binding IsFiltered}"/> |
251 | 251 | </Grid> |
|
301 | 301 | <DataGridTemplateColumn Header="FILTER"> |
302 | 302 | <DataGridTemplateColumn.CellTemplate> |
303 | 303 | <DataTemplate x:DataType="{x:Type m:Tag}"> |
304 | | - <ToggleButton Classes="filter" |
305 | | - Margin="0,0,8,0" |
306 | | - Background="Transparent" |
307 | | - Checked="OnToggleFilter" |
| 304 | + <ToggleButton Classes="filter" |
| 305 | + Margin="0,0,8,0" |
| 306 | + Background="Transparent" |
| 307 | + Checked="OnToggleFilter" |
308 | 308 | Unchecked="OnToggleFilter" |
309 | 309 | IsChecked="{Binding IsFiltered}"/> |
310 | 310 | </DataTemplate> |
|
318 | 318 | <Grid ColumnDefinitions="Auto,*,Auto,Auto"> |
319 | 319 | <TextBlock Grid.Column="0" Classes="group_header_label" Margin="4,0,0,0" Text="{DynamicResource Text.Repository.Submodules}"/> |
320 | 320 | <TextBlock Grid.Column="1" Text="{Binding Submodules, Converter={x:Static c:ListConverters.ToCount}}" Foreground="{DynamicResource Brush.FG2}" FontWeight="Bold"/> |
321 | | - <Button Grid.Column="2" |
322 | | - Classes="icon_button" |
323 | | - Width="14" |
324 | | - Margin="8,0" |
| 321 | + <Button Grid.Column="2" |
| 322 | + Classes="icon_button" |
| 323 | + Width="14" |
| 324 | + Margin="8,0" |
325 | 325 | Click="UpdateSubmodules" |
326 | 326 | IsVisible="{Binding Submodules, Converter={x:Static c:ListConverters.IsNotNullOrEmpty}}" |
327 | 327 | ToolTip.Tip="{DynamicResource Text.Repository.Submodules.Update}"> |
|
371 | 371 | <!-- Left Search Mode --> |
372 | 372 | <Grid Grid.Column="0" RowDefinitions="32,*" IsVisible="{Binding IsSearching}" PropertyChanged="OnSearchCommitPanelPropertyChanged"> |
373 | 373 | <!-- Search --> |
374 | | - <TextBox Grid.Row="0" |
| 374 | + <TextBox Grid.Row="0" |
375 | 375 | x:Name="txtSearchCommitsBox" |
376 | 376 | Margin="4,2" |
377 | 377 | Height="24" |
|
445 | 445 | </DataGridTemplateColumn> |
446 | 446 | </DataGrid.Columns> |
447 | 447 | </DataGrid> |
448 | | - |
| 448 | + |
449 | 449 | <Path Grid.Row="1" |
450 | 450 | HorizontalAlignment="Center" VerticalAlignment="Center" |
451 | 451 | Width="48" Height="48" |
|
0 commit comments