Skip to content

Commit

Permalink
Set border thickness for toolbar buttons to 0 by default
Browse files Browse the repository at this point in the history
  • Loading branch information
benruehl committed Nov 22, 2018
1 parent 7f5de6b commit 2d0198c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions AdonisUI.ClassicTheme/NamedStyles/AccentToolbarButton.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<Setter Property="Foreground" Value="{DynamicResource {x:Static adonisUi:Brushes.ForegroundBrush}}"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="BorderBrush" Value="Transparent"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="adonisExtensions:RippleExtension.BackgroundBrush" Value="{DynamicResource {x:Static adonisUi:Brushes.AccentInteractionBrush}}"/>
<Setter Property="adonisExtensions:RippleExtension.BorderBrush" Value="{DynamicResource {x:Static adonisUi:Brushes.AccentInteractionBorderBrush}}"/>
<Setter Property="adonisExtensions:RippleExtension.ForegroundBrush" Value="{DynamicResource {x:Static adonisUi:Brushes.AccentInteractionForegroundBrush}}"/>
Expand Down
2 changes: 1 addition & 1 deletion AdonisUI.ClassicTheme/NamedStyles/ToolbarButton.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<Style x:Key="{x:Static adonisUi:Styles.ToolbarButton}" TargetType="Button" BasedOn="{StaticResource {x:Type Button}}">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="BorderBrush" Value="Transparent"/>
<Setter Property="BorderThickness" Value="{DynamicResource {x:Static adonisUi:Dimensions.BorderThickness}}"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Padding" Value="2"/>

<Style.Triggers>
Expand Down
2 changes: 0 additions & 2 deletions AdonisUI.Demo/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,12 @@

<Button Content="Change Theme"
Style="{DynamicResource {x:Static adonisUi:Styles.ToolbarButton}}"
BorderThickness="0"
Click="ChangeTheme"
HorizontalAlignment="Stretch"
Padding="8"/>

<Button Content="Check Issues"
Style="{DynamicResource {x:Static adonisUi:Styles.ToolbarButton}}"
BorderThickness="0"
Click="OpenIssueDialog"
HorizontalAlignment="Stretch"
Padding="8"/>
Expand Down

0 comments on commit 2d0198c

Please sign in to comment.