|
42 | 42 | <Border CornerRadius="6" ClipToBounds="True">
|
43 | 43 | <ListBox Background="Transparent" SelectedIndex="{Binding SelectedViewIndex, Mode=TwoWay}">
|
44 | 44 | <ListBox.Styles>
|
| 45 | + <Style Selector="Path.icon"> |
| 46 | + <Setter Property="Width" Value="12"/> |
| 47 | + <Setter Property="Height" Value="12"/> |
| 48 | + <Setter Property="Margin" Value="8,0,6,0"/> |
| 49 | + <Setter Property="Fill" Value="{DynamicResource Brush.FG2}"/> |
| 50 | + </Style> |
| 51 | + <Style Selector="TextBlock.header"> |
| 52 | + <Setter Property="Foreground" Value="{DynamicResource Brush.FG2}"/> |
| 53 | + <Setter Property="FontWeight" Value="Bold"/> |
| 54 | + </Style> |
45 | 55 | <Style Selector="ListBoxItem">
|
46 | 56 | <Setter Property="Height" Value="28"/>
|
47 | 57 | <Setter Property="Margin" Value="0"/>
|
|
58 | 68 | <Style Selector="ListBoxItem:selected Grid.view_mode">
|
59 | 69 | <Setter Property="Background" Value="{DynamicResource Brush.AccentHovered}"/>
|
60 | 70 | </Style>
|
| 71 | + <Style Selector="ListBoxItem:selected TextBlock.header"> |
| 72 | + <Setter Property="Foreground" Value="{DynamicResource Brush.FG1}"/> |
| 73 | + </Style> |
| 74 | + <Style Selector="ListBoxItem:selected Path.icon"> |
| 75 | + <Setter Property="Fill" Value="{DynamicResource Brush.FG1}"/> |
| 76 | + </Style> |
61 | 77 | </ListBox.Styles>
|
62 | 78 |
|
63 | 79 | <ListBox.ItemsPanel>
|
|
67 | 83 | </ListBox.ItemsPanel>
|
68 | 84 |
|
69 | 85 | <ListBoxItem>
|
70 |
| - <Grid Classes="view_mode" ColumnDefinitions="32,*,Auto,Auto,Auto,Auto"> |
71 |
| - <Path Grid.Column="0" Width="12" Height="12" Data="{StaticResource Icons.Histories}"/> |
72 |
| - <TextBlock Grid.Column="1" Classes="primary" Text="{DynamicResource Text.Histories}"/> |
| 86 | + <Grid Classes="view_mode" ColumnDefinitions="Auto,*,Auto,Auto,Auto,Auto"> |
| 87 | + <Path Grid.Column="0" Classes="icon" Data="{StaticResource Icons.Histories}"/> |
| 88 | + <TextBlock Grid.Column="1" Classes="header" Text="{DynamicResource Text.Histories}"/> |
73 | 89 | <ToggleButton Grid.Column="2"
|
74 | 90 | Classes="layout_direction"
|
75 | 91 | Width="28" Height="26"
|
|
102 | 118 | </ListBoxItem>
|
103 | 119 |
|
104 | 120 | <ListBoxItem>
|
105 |
| - <Grid Classes="view_mode" ColumnDefinitions="32,*,Auto"> |
106 |
| - <Path Grid.Column="0" Width="12" Height="12" Data="{StaticResource Icons.Changes}"/> |
107 |
| - <TextBlock Grid.Column="1" Classes="primary" Text="{DynamicResource Text.WorkingCopy}"/> |
| 121 | + <Grid Classes="view_mode" ColumnDefinitions="Auto,*,Auto"> |
| 122 | + <Path Grid.Column="0" Classes="icon" Data="{StaticResource Icons.Changes}"/> |
| 123 | + <TextBlock Grid.Column="1" Classes="header" Text="{DynamicResource Text.WorkingCopy}"/> |
108 | 124 | <v:CounterPresenter Grid.Column="2"
|
109 | 125 | Margin="6,0"
|
110 | 126 | VerticalAlignment="Center"
|
|
117 | 133 | </ListBoxItem>
|
118 | 134 |
|
119 | 135 | <ListBoxItem>
|
120 |
| - <Grid Classes="view_mode" ColumnDefinitions="32,*,Auto"> |
121 |
| - <Path Grid.Column="0" Width="12" Height="12" Data="{StaticResource Icons.Stashes}"/> |
122 |
| - <TextBlock Grid.Column="1" Classes="primary" Text="{DynamicResource Text.Stashes}"/> |
| 136 | + <Grid Classes="view_mode" ColumnDefinitions="Auto,*,Auto"> |
| 137 | + <Path Grid.Column="0" Classes="icon" Data="{StaticResource Icons.Stashes}"/> |
| 138 | + <TextBlock Grid.Column="1" Classes="header" Text="{DynamicResource Text.Stashes}"/> |
123 | 139 | <v:CounterPresenter Grid.Column="2"
|
124 | 140 | Margin="6,0"
|
125 | 141 | VerticalAlignment="Center"
|
|
0 commit comments