Browse Source

Merge pull request #2009 from wieslawsoltes/DefaultThemeFixes

Use theme resources for ContextMenu and Expander default theme styles
pull/2021/head
Jumar Macato 8 years ago
committed by GitHub
parent
commit
cbdcf3dd58
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/Avalonia.Themes.Default/ContextMenu.xaml
  2. 2
      src/Avalonia.Themes.Default/Expander.xaml

4
src/Avalonia.Themes.Default/ContextMenu.xaml

@ -1,8 +1,8 @@
<Style xmlns="https://github.com/avaloniaui" Selector="ContextMenu">
<Setter Property="BorderBrush" Value="Gray"/>
<Setter Property="BorderBrush" Value="{DynamicResource ThemeBorderMidBrush}"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="Padding" Value="4,2"/>
<Setter Property="TextBlock.FontSize" Value="12" />
<Setter Property="TextBlock.FontSize" Value="{DynamicResource FontSizeNormal}" />
<Setter Property="TextBlock.FontWeight" Value="Normal" />
<Setter Property="Template">
<ControlTemplate>

2
src/Avalonia.Themes.Default/Expander.xaml

@ -89,7 +89,7 @@
<Border BorderThickness="1">
<Grid ColumnDefinitions="Auto,Auto">
<Border Grid.Column="0" Width="20" Height="20" HorizontalAlignment="Center" VerticalAlignment="Center">
<Path Fill="Black"
<Path Fill="{DynamicResource ThemeForegroundBrush}"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Data="M 0 2 L 4 6 L 0 10 Z" />

Loading…
Cancel
Save