|
17 | 17 | </Grid.ColumnDefinitions> |
18 | 18 |
|
19 | 19 | <!-- Left --> |
20 | | - <Grid Grid.Column="0" RowDefinitions="28,*,28,*"> |
| 20 | + <Grid Grid.Column="0" RowDefinitions="28,36,*,28,*"> |
21 | 21 | <!-- Stash Bar --> |
22 | | - <Border Grid.Row="0" BorderThickness="0,0,0,1" BorderBrush="{DynamicResource Brush.Border0}"> |
23 | | - <Grid ColumnDefinitions="Auto,Auto,Auto,*,Auto"> |
24 | | - <Path Grid.Column="0" Margin="8,0,0,0" Width="14" Height="14" Fill="{DynamicResource Brush.FG2}" Data="{StaticResource Icons.Stashes}"/> |
25 | | - <TextBlock Grid.Column="1" Text="{DynamicResource Text.Stashes.Stashes}" Foreground="{DynamicResource Brush.FG2}" FontWeight="Bold" Margin="8,0,0,0"/> |
26 | | - <TextBlock Grid.Column="2" Text="{Binding Stashes, Converter={x:Static c:ListConverters.ToCount}}" Foreground="{DynamicResource Brush.FG2}" FontWeight="Bold"/> |
27 | | - <Button Grid.Column="4" |
28 | | - Classes="icon_button" |
29 | | - Width="26" Height="14" |
30 | | - Padding="0" |
31 | | - Command="{Binding Clear}" |
32 | | - IsEnabled="{Binding Stashes.Count, Converter={x:Static c:IntConverters.IsGreaterThanZero}}"> |
33 | | - <Path Width="14" Height="14" Data="{StaticResource Icons.Clean}"/> |
34 | | - </Button> |
35 | | - </Grid> |
| 22 | + <Grid Grid.Row="0" ColumnDefinitions="Auto,Auto,Auto,*,Auto"> |
| 23 | + <Path Grid.Column="0" Margin="8,0,0,0" Width="14" Height="14" Fill="{DynamicResource Brush.FG2}" Data="{StaticResource Icons.Stashes}"/> |
| 24 | + <TextBlock Grid.Column="1" Text="{DynamicResource Text.Stashes.Stashes}" Foreground="{DynamicResource Brush.FG2}" FontWeight="Bold" Margin="8,0,0,0"/> |
| 25 | + <TextBlock Grid.Column="2" Text="{Binding Stashes, Converter={x:Static c:ListConverters.ToCount}}" Foreground="{DynamicResource Brush.FG2}" FontWeight="Bold"/> |
| 26 | + <Button Grid.Column="4" |
| 27 | + Classes="icon_button" |
| 28 | + Width="26" Height="14" |
| 29 | + Padding="0" |
| 30 | + Command="{Binding Clear}" |
| 31 | + IsEnabled="{Binding Stashes.Count, Converter={x:Static c:IntConverters.IsGreaterThanZero}}"> |
| 32 | + <Path Width="14" Height="14" Data="{StaticResource Icons.Clean}"/> |
| 33 | + </Button> |
| 34 | + </Grid> |
| 35 | + |
| 36 | + <!-- Search Bar --> |
| 37 | + <Border Grid.Row="1" BorderThickness="0,1" BorderBrush="{DynamicResource Brush.Border0}"> |
| 38 | + <TextBox Grid.Row="1" |
| 39 | + Height="24" |
| 40 | + Margin="4,0" |
| 41 | + BorderThickness="1" |
| 42 | + CornerRadius="12" |
| 43 | + Text="{Binding SearchFilter, Mode=TwoWay}" |
| 44 | + BorderBrush="{DynamicResource Brush.Border2}" |
| 45 | + VerticalContentAlignment="Center"> |
| 46 | + <TextBox.InnerLeftContent> |
| 47 | + <Path Width="14" Height="14" |
| 48 | + Margin="6,0,0,0" |
| 49 | + Fill="{DynamicResource Brush.FG2}" |
| 50 | + Data="{StaticResource Icons.Search}"/> |
| 51 | + </TextBox.InnerLeftContent> |
| 52 | + |
| 53 | + <TextBox.InnerRightContent> |
| 54 | + <Button Classes="icon_button" |
| 55 | + Width="16" |
| 56 | + Margin="0,0,6,0" |
| 57 | + Command="{Binding ClearSearchFilter}" |
| 58 | + IsVisible="{Binding SearchFilter, Converter={x:Static StringConverters.IsNotNullOrEmpty}}" |
| 59 | + HorizontalAlignment="Right"> |
| 60 | + <Path Width="14" Height="14" |
| 61 | + Margin="0,1,0,0" |
| 62 | + Fill="{DynamicResource Brush.FG1}" |
| 63 | + Data="{StaticResource Icons.Clear}"/> |
| 64 | + </Button> |
| 65 | + </TextBox.InnerRightContent> |
| 66 | + </TextBox> |
36 | 67 | </Border> |
37 | 68 |
|
38 | 69 | <!-- Stash List --> |
39 | | - <DataGrid Grid.Row="1" |
| 70 | + <DataGrid Grid.Row="2" |
40 | 71 | Background="{DynamicResource Brush.Contents}" |
41 | | - ItemsSource="{Binding Stashes}" |
| 72 | + ItemsSource="{Binding VisibleStashes}" |
42 | 73 | SelectedItem="{Binding SelectedStash, Mode=TwoWay}" |
43 | 74 | SelectionMode="Single" |
44 | 75 | CanUserReorderColumns="False" |
|
71 | 102 | </DataGrid> |
72 | 103 |
|
73 | 104 | <!-- Changes Bar --> |
74 | | - <Border Grid.Row="2" BorderThickness="0,1" BorderBrush="{DynamicResource Brush.Border0}"> |
| 105 | + <Border Grid.Row="3" BorderThickness="0,1" BorderBrush="{DynamicResource Brush.Border0}"> |
75 | 106 | <Grid ColumnDefinitions="Auto,Auto,*"> |
76 | 107 | <Path Grid.Column="0" Margin="8,0,0,0" Width="14" Height="14" Fill="{DynamicResource Brush.FG2}" Data="{StaticResource Icons.File}"/> |
77 | 108 | <TextBlock Grid.Column="1" Text="{DynamicResource Text.Stashes.Changes}" Foreground="{DynamicResource Brush.FG2}" FontWeight="Bold" Margin="8,0,0,0"/> |
|
80 | 111 | </Border> |
81 | 112 |
|
82 | 113 | <!-- View Changes --> |
83 | | - <DataGrid Grid.Row="3" |
| 114 | + <DataGrid Grid.Row="4" |
84 | 115 | Background="{DynamicResource Brush.Contents}" |
85 | 116 | ItemsSource="{Binding Changes}" |
86 | 117 | SelectedItem="{Binding SelectedChange, Mode=TwoWay}" |
|
0 commit comments