Skip to content

Commit

Permalink
Fixed icon alignment in DropDownButton, ToggleButton, Button (compare…
Browse files Browse the repository at this point in the history
…d to SplitButton)
  • Loading branch information
floele-ww committed Mar 29, 2016
1 parent 89dc8d9 commit 2c539f1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Fluent.Ribbon/Themes/Office2013/Controls/Button.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
Value="16" />
<Setter Property="Margin"
TargetName="iconImage"
Value="1,0,2,0" />
Value="2,0,2,0" />
<Setter Property="Content"
TargetName="iconImage"
Value="{Binding Icon, RelativeSource={RelativeSource TemplatedParent}, Converter={x:Static Converters:StaticConverters.ObjectToImageConverter}}" />
Expand Down Expand Up @@ -92,7 +92,7 @@
Value="16" />
<Setter Property="Margin"
TargetName="iconImage"
Value="1,0,2,0" />
Value="2,0,2,0" />
<Setter Property="Content"
TargetName="iconImage"
Value="{Binding Icon, RelativeSource={RelativeSource TemplatedParent}, Converter={x:Static Converters:StaticConverters.ObjectToImageConverter}}" />
Expand Down
4 changes: 2 additions & 2 deletions Fluent.Ribbon/Themes/Office2013/Controls/DropDownButton.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@
Value="16" />
<Setter Property="Margin"
TargetName="iconImage"
Value="1,0,0,0" />
Value="2,0,0,0" />
<Setter Property="Margin"
TargetName="controlLabel"
Value="-2,0,2,1" />
Expand Down Expand Up @@ -256,7 +256,7 @@
Value="16" />
<Setter Property="Margin"
TargetName="iconImage"
Value="1,0,2,0" />
Value="2,0,2,0" />
<Setter Property="VerticalAlignment"
TargetName="controlLabel"
Value="Center" />
Expand Down
4 changes: 4 additions & 0 deletions Fluent.Ribbon/Themes/Office2013/Controls/ToggleButton.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,17 @@
Value="Middle">
<Setter Property="Height"
Value="22" />
<Setter Property="HorizontalAlignment"
Value="Left" />
</Trigger>
<Trigger Property="Size"
Value="Small">
<Setter Property="Height"
Value="22" />
<Setter Property="Width"
Value="22" />
<Setter Property="HorizontalAlignment"
Value="Left" />
</Trigger>
</Style.Triggers>
</Style>
Expand Down

0 comments on commit 2c539f1

Please sign in to comment.