ux: unify content height of page switcher (exclude borders)

This commit is contained in:
leo 2024-06-25 11:51:02 +08:00
parent 11c687538e
commit 8b56c03d87
No known key found for this signature in database
2 changed files with 3 additions and 4 deletions

View file

@ -650,7 +650,6 @@
</Style> </Style>
<Style Selector="ListBox.page_switcher ListBoxItem"> <Style Selector="ListBox.page_switcher ListBoxItem">
<Setter Property="Height" Value="28"/>
<Setter Property="Margin" Value="0"/> <Setter Property="Margin" Value="0"/>
<Setter Property="Padding" Value="0"/> <Setter Property="Padding" Value="0"/>
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Border2}"/> <Setter Property="BorderBrush" Value="{DynamicResource Brush.Border2}"/>

View file

@ -123,14 +123,14 @@
</ItemsPanelTemplate> </ItemsPanelTemplate>
</ListBox.ItemsPanel> </ListBox.ItemsPanel>
<ListBoxItem BorderThickness="1,1,1,1" CornerRadius="6,6,0,0"> <ListBoxItem Height="28" BorderThickness="1,1,1,1" CornerRadius="6,6,0,0">
<Grid Height="28" ColumnDefinitions="32,*"> <Grid Height="28" ColumnDefinitions="32,*">
<Path Grid.Column="0" Width="12" Height="12" Data="{StaticResource Icons.Histories}"/> <Path Grid.Column="0" Width="12" Height="12" Data="{StaticResource Icons.Histories}"/>
<TextBlock Grid.Column="1" Classes="monospace" Text="{DynamicResource Text.Histories}"/> <TextBlock Grid.Column="1" Classes="monospace" Text="{DynamicResource Text.Histories}"/>
</Grid> </Grid>
</ListBoxItem> </ListBoxItem>
<ListBoxItem BorderThickness="1,0,1,0"> <ListBoxItem Height="26" BorderThickness="1,0,1,0">
<Grid Height="28" ColumnDefinitions="32,*,Auto"> <Grid Height="28" ColumnDefinitions="32,*,Auto">
<Path Grid.Column="0" Width="12" Height="12" Data="{StaticResource Icons.Send}"/> <Path Grid.Column="0" Width="12" Height="12" Data="{StaticResource Icons.Send}"/>
<TextBlock Grid.Column="1" Classes="monospace" Text="{DynamicResource Text.WorkingCopy}"/> <TextBlock Grid.Column="1" Classes="monospace" Text="{DynamicResource Text.WorkingCopy}"/>
@ -146,7 +146,7 @@
</Grid> </Grid>
</ListBoxItem> </ListBoxItem>
<ListBoxItem BorderThickness="1,1,1,1" CornerRadius="0,0,6,6"> <ListBoxItem Height="28" BorderThickness="1,1,1,1" CornerRadius="0,0,6,6">
<Grid Height="28" ColumnDefinitions="32,*,Auto"> <Grid Height="28" ColumnDefinitions="32,*,Auto">
<Path Grid.Column="0" Width="12" Height="12" Data="{StaticResource Icons.Stashes}"/> <Path Grid.Column="0" Width="12" Height="12" Data="{StaticResource Icons.Stashes}"/>
<TextBlock Grid.Column="1" Classes="monospace" Text="{DynamicResource Text.Stashes}"/> <TextBlock Grid.Column="1" Classes="monospace" Text="{DynamicResource Text.Stashes}"/>