Browse Source

Fixing FluentTheme Expanded header foreground issue

My first attempt at contributing!

This commit adds a style selector to ensure that the Expanded control keeps its foreground when expanded. Fixes #5349

Tested with 0.10.0 with both Light and Dark themes.
pull/5353/head
Mike James 5 years ago
parent
commit
a1f9749490
  1. 3
      src/Avalonia.Themes.Fluent/Controls/Expander.xaml

3
src/Avalonia.Themes.Fluent/Controls/Expander.xaml

@ -26,6 +26,9 @@
</ControlTemplate>
</Setter>
</Style>
<Style Selector="Expander[IsExpanded=true] /template/ ToggleButton#PART_toggle /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="TextBlock.Foreground" Value="{DynamicResource ToggleButtonForeground}"/>
</Style>
<Style Selector="Expander[ExpandDirection=Up]">
<Setter Property="Template">
<ControlTemplate>

Loading…
Cancel
Save