feat: reduce icon visual.

This commit is contained in:
rabbitism
2024-02-23 19:15:21 +08:00
parent cf52bcf2d4
commit ef8686aa69
2 changed files with 5 additions and 3 deletions

View File

@@ -70,7 +70,7 @@
Grid.Row="2" Grid.Row="2"
Grid.Column="2" Grid.Column="2"
RowDefinitions="Auto, *"> RowDefinitions="Auto, *">
<u:ToolBar> <u:ToolBar Margin="16">
<ToggleButton Name="bold"> <ToggleButton Name="bold">
<PathIcon <PathIcon
Width="16" Width="16"

View File

@@ -37,6 +37,7 @@
<ControlTemplate TargetType="u:ToolBar"> <ControlTemplate TargetType="u:ToolBar">
<Border <Border
Padding="2" Padding="2"
Margin="0"
HorizontalAlignment="{TemplateBinding HorizontalAlignment}" HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
VerticalAlignment="{TemplateBinding VerticalAlignment}" VerticalAlignment="{TemplateBinding VerticalAlignment}"
CornerRadius="4" CornerRadius="4"
@@ -62,7 +63,8 @@
Theme="{DynamicResource ToolBarExpandToggleButton}"> Theme="{DynamicResource ToolBarExpandToggleButton}">
<PathIcon <PathIcon
Name="PART_Icon" Name="PART_Icon"
Height="16" Height="12"
Foreground="{DynamicResource SemiColorText2}"
Data="{DynamicResource ToolBarHorizontalMoreGlyph}" /> Data="{DynamicResource ToolBarHorizontalMoreGlyph}" />
</ToggleButton> </ToggleButton>
<Popup <Popup
@@ -102,7 +104,7 @@
</Style> </Style>
<Style Selector="^ /template/ PathIcon#PART_Icon"> <Style Selector="^ /template/ PathIcon#PART_Icon">
<Setter Property="Data" Value="{DynamicResource ToolBarVerticalMoreGlyph}" /> <Setter Property="Data" Value="{DynamicResource ToolBarVerticalMoreGlyph}" />
<Setter Property="Width" Value="16" /> <Setter Property="Width" Value="12" />
<Setter Property="Height" Value="{x:Static x:Double.NaN}" /> <Setter Property="Height" Value="{x:Static x:Double.NaN}" />
</Style> </Style>
</Style> </Style>