style<Dashboard>: fixed height for workspace switches

This commit is contained in:
leo 2021-03-29 17:01:03 +08:00
parent e00271199a
commit 2f8fcbf36f

View file

@ -151,14 +151,14 @@
Style="{StaticResource Style.ListView.Borderless}" Style="{StaticResource Style.ListView.Borderless}"
Background="{StaticResource Brush.GroupContent}" Background="{StaticResource Brush.GroupContent}"
SelectionMode="Single"> SelectionMode="Single">
<ListViewItem x:Name="historiesSwitch" Selected="SwitchHistories" IsSelected="True"> <ListViewItem x:Name="historiesSwitch" Selected="SwitchHistories" IsSelected="True" Height="28">
<StackPanel Margin="16,0,0,0" Orientation="Horizontal"> <StackPanel Margin="16,0,0,0" Orientation="Horizontal">
<Path Style="{StaticResource Style.Icon}" Data="{StaticResource Icon.Histories}"/> <Path Style="{StaticResource Style.Icon}" Data="{StaticResource Icon.Histories}"/>
<Label Margin="4,0,0,0" Content="{StaticResource Text.Histories}"/> <Label Margin="4,0,0,0" Content="{StaticResource Text.Histories}"/>
</StackPanel> </StackPanel>
</ListViewItem> </ListViewItem>
<ListViewItem x:Name="workingCopySwitch" Selected="SwitchWorkingCopy"> <ListViewItem x:Name="workingCopySwitch" Selected="SwitchWorkingCopy" Height="28">
<Grid Margin="16,0,0,0"> <Grid Margin="16,0,0,0">
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/> <ColumnDefinition Width="Auto"/>
@ -173,7 +173,7 @@
</Grid> </Grid>
</ListViewItem> </ListViewItem>
<ListViewItem x:Name="stashesSwitch" Selected="SwitchStashes"> <ListViewItem x:Name="stashesSwitch" Selected="SwitchStashes" Height="28">
<Grid Margin="16,0,0,0"> <Grid Margin="16,0,0,0">
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/> <ColumnDefinition Width="Auto"/>
@ -244,6 +244,7 @@
IsChecked="{Binding IsFiltered, Mode=OneWay}" IsChecked="{Binding IsFiltered, Mode=OneWay}"
Checked="FilterChanged" Checked="FilterChanged"
Unchecked="FilterChanged" Unchecked="FilterChanged"
Margin="0,0,2,0"
Style="{StaticResource Style.ToggleButton.Filter}" Style="{StaticResource Style.ToggleButton.Filter}"
ToolTip="{StaticResource Text.Filter}"/> ToolTip="{StaticResource Text.Filter}"/>
</StackPanel> </StackPanel>
@ -332,6 +333,7 @@
IsChecked="{Binding IsFiltered, Mode=OneWay}" IsChecked="{Binding IsFiltered, Mode=OneWay}"
Checked="FilterChanged" Checked="FilterChanged"
Unchecked="FilterChanged" Unchecked="FilterChanged"
Margin="0,0,2,0"
Style="{StaticResource Style.ToggleButton.Filter}" Style="{StaticResource Style.ToggleButton.Filter}"
ToolTip="{StaticResource Text.Filter}"/> ToolTip="{StaticResource Text.Filter}"/>
</Grid> </Grid>
@ -414,7 +416,8 @@
Grid.Column="2" Grid.Column="2"
IsChecked="{Binding IsFiltered, Mode=TwoWay}" IsChecked="{Binding IsFiltered, Mode=TwoWay}"
Checked="FilterChanged" Checked="FilterChanged"
Unchecked="FilterChanged" Unchecked="FilterChanged"
Margin="0,0,2,0"
Style="{StaticResource Style.ToggleButton.Filter}" Style="{StaticResource Style.ToggleButton.Filter}"
ToolTip="{StaticResource Text.Filter}"/> ToolTip="{StaticResource Text.Filter}"/>
</DataTemplate> </DataTemplate>