ux: reduce width of buttons in Histories toolbar

This commit is contained in:
leo 2025-01-06 17:58:43 +08:00
parent 68cfb092fc
commit a00e62233f
No known key found for this signature in database

View file

@ -89,7 +89,7 @@
<ToggleButton Grid.Column="2" <ToggleButton Grid.Column="2"
Classes="line_path" Classes="line_path"
Width="28" Height="26" Width="26" Height="26"
Background="Transparent" Background="Transparent"
IsChecked="{Binding EnableReflog, Mode=TwoWay}" IsChecked="{Binding EnableReflog, Mode=TwoWay}"
ToolTip.Tip="{DynamicResource Text.Repository.EnableReflog}"> ToolTip.Tip="{DynamicResource Text.Repository.EnableReflog}">
@ -97,7 +97,7 @@
</ToggleButton> </ToggleButton>
<ToggleButton Grid.Column="3" <ToggleButton Grid.Column="3"
Classes="line_path" Classes="line_path"
Width="28" Height="26" Width="26" Height="26"
Background="Transparent" Background="Transparent"
IsChecked="{Binding EnableFirstParentInHistories, Mode=TwoWay}" IsChecked="{Binding EnableFirstParentInHistories, Mode=TwoWay}"
ToolTip.Tip="{DynamicResource Text.Repository.FirstParentFilterToggle}"> ToolTip.Tip="{DynamicResource Text.Repository.FirstParentFilterToggle}">
@ -105,7 +105,7 @@
</ToggleButton> </ToggleButton>
<ToggleButton Grid.Column="4" <ToggleButton Grid.Column="4"
Classes="line_path" Classes="line_path"
Width="28" Height="26" Width="26" Height="26"
Background="Transparent" Background="Transparent"
IsChecked="{Binding OnlyHighlightCurrentBranchInHistories, Mode=TwoWay}" IsChecked="{Binding OnlyHighlightCurrentBranchInHistories, Mode=TwoWay}"
ToolTip.Tip="{DynamicResource Text.Repository.OnlyHighlightCurrentBranchInHistories}"> ToolTip.Tip="{DynamicResource Text.Repository.OnlyHighlightCurrentBranchInHistories}">
@ -113,7 +113,7 @@
</ToggleButton> </ToggleButton>
<ToggleButton Grid.Column="5" <ToggleButton Grid.Column="5"
Classes="line_path" Classes="line_path"
Width="28" Height="26" Width="26" Height="26"
Background="Transparent" Background="Transparent"
IsChecked="{Binding Source={x:Static vm:Preference.Instance}, Path=DisplayTimeAsPeriodInHistories, Mode=TwoWay}" IsChecked="{Binding Source={x:Static vm:Preference.Instance}, Path=DisplayTimeAsPeriodInHistories, Mode=TwoWay}"
ToolTip.Tip="{DynamicResource Text.Repository.UseRelativeTimeInHistories}"> ToolTip.Tip="{DynamicResource Text.Repository.UseRelativeTimeInHistories}">
@ -121,7 +121,7 @@
</ToggleButton> </ToggleButton>
<Button Grid.Column="6" <Button Grid.Column="6"
Classes="icon_button" Classes="icon_button"
Width="28" Height="26" Width="26" Height="26"
Click="OnOpenAdvancedHistoriesOption"> Click="OnOpenAdvancedHistoriesOption">
<Path Width="12" Height="12" Data="{StaticResource Icons.More}"/> <Path Width="12" Height="12" Data="{StaticResource Icons.More}"/>
</Button> </Button>