|
192 | 192 | </Border> |
193 | 193 |
|
194 | 194 | <!-- Filter Branches/Tags/Submodules --> |
195 | | - <TextBox Grid.Row="1" |
196 | | - Height="26" |
197 | | - Margin="8,6,4,0" |
198 | | - BorderThickness="1" |
199 | | - CornerRadius="4" |
200 | | - BorderBrush="{DynamicResource Brush.Border2}" |
201 | | - Watermark="{DynamicResource Text.Repository.Filter}" |
202 | | - Text="{Binding Filter, Mode=TwoWay}" |
203 | | - VerticalContentAlignment="Center"> |
204 | | - <TextBox.InnerLeftContent> |
205 | | - <Path Width="14" Height="14" |
206 | | - Margin="6,0,0,0" |
207 | | - Fill="{DynamicResource Brush.FG2}" |
208 | | - Data="{StaticResource Icons.Search}"/> |
209 | | - </TextBox.InnerLeftContent> |
210 | | - |
211 | | - <TextBox.InnerRightContent> |
212 | | - <Button Classes="icon_button" |
213 | | - Width="16" |
214 | | - Margin="0,0,6,0" |
215 | | - Command="{Binding ClearFilter}" |
216 | | - IsVisible="{Binding Filter, Converter={x:Static StringConverters.IsNotNullOrEmpty}}" |
217 | | - HorizontalAlignment="Right"> |
| 195 | + <Grid Grid.Row="1" Height="26" Margin="8,6,4,0" ColumnDefinitions="*,Auto,Auto"> |
| 196 | + <TextBox Grid.Column="0" |
| 197 | + BorderThickness="1" |
| 198 | + CornerRadius="4" |
| 199 | + BorderBrush="{DynamicResource Brush.Border2}" |
| 200 | + Watermark="{DynamicResource Text.Repository.Filter}" |
| 201 | + Text="{Binding Filter, Mode=TwoWay}" |
| 202 | + VerticalContentAlignment="Center"> |
| 203 | + <TextBox.InnerLeftContent> |
218 | 204 | <Path Width="14" Height="14" |
219 | | - Margin="0,1,0,0" |
220 | | - Fill="{DynamicResource Brush.FG1}" |
221 | | - Data="{StaticResource Icons.Clear}"/> |
222 | | - </Button> |
223 | | - </TextBox.InnerRightContent> |
224 | | - </TextBox> |
| 205 | + Margin="6,0,0,0" |
| 206 | + Fill="{DynamicResource Brush.FG2}" |
| 207 | + Data="{StaticResource Icons.Search}"/> |
| 208 | + </TextBox.InnerLeftContent> |
| 209 | + |
| 210 | + <TextBox.InnerRightContent> |
| 211 | + <Button Classes="icon_button" |
| 212 | + Width="16" |
| 213 | + Margin="0,0,6,0" |
| 214 | + Command="{Binding ClearFilter}" |
| 215 | + IsVisible="{Binding Filter, Converter={x:Static StringConverters.IsNotNullOrEmpty}}" |
| 216 | + HorizontalAlignment="Right"> |
| 217 | + <Path Width="14" Height="14" |
| 218 | + Margin="0,1,0,0" |
| 219 | + Fill="{DynamicResource Brush.FG1}" |
| 220 | + Data="{StaticResource Icons.Clear}"/> |
| 221 | + </Button> |
| 222 | + </TextBox.InnerRightContent> |
| 223 | + </TextBox> |
| 224 | + |
| 225 | + <!-- Expand All Button --> |
| 226 | + <Button Grid.Column="1" |
| 227 | + Classes="icon_button" |
| 228 | + Width="14" |
| 229 | + Margin="4,0,0,0" |
| 230 | + Click="OnExpandAllNodes" |
| 231 | + ToolTip.Tip="{DynamicResource Text.Repository.ExpandAll}"> |
| 232 | + <Path Width="12" Height="12" |
| 233 | + Fill="{DynamicResource Brush.FG1}" |
| 234 | + Data="{StaticResource Icons.DoubleDown}"/> |
| 235 | + </Button> |
| 236 | + |
| 237 | + <!-- Collapse All Button --> |
| 238 | + <Button Grid.Column="2" |
| 239 | + Classes="icon_button" |
| 240 | + Width="14" |
| 241 | + Margin="4,0,0,0" |
| 242 | + Click="OnCollapseAllNodes" |
| 243 | + ToolTip.Tip="{DynamicResource Text.Repository.CollapseAll}"> |
| 244 | + <Path Width="12" Height="12" |
| 245 | + Fill="{DynamicResource Brush.FG1}" |
| 246 | + Data="{StaticResource Icons.DoubleUp}"/> |
| 247 | + </Button> |
| 248 | + </Grid> |
225 | 249 |
|
226 | 250 | <Grid Grid.Row="2" x:Name="LeftSidebarGroups" Margin="0,4,0,0" RowDefinitions="28,Auto,28,Auto,28,Auto,28,Auto,28,Auto" SizeChanged="OnLeftSidebarSizeChanged"> |
227 | 251 | <!-- Local Branches --> |
|
0 commit comments