Skip to content

Commit

Permalink
Removes the inverted theme colors from default FlyoutPresenter. Adds …
Browse files Browse the repository at this point in the history
…the MaterialInvertedFlyoutPresenter theme for those who want to keep previous behavior. Fix #354
  • Loading branch information
SKProCH committed Mar 5, 2024
1 parent 68aa347 commit 70bf5ba
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Material.Styles/Resources/Themes/FlyoutPresenter.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
<ControlTheme x:Key="MaterialFlyoutPresenter" TargetType="FlyoutPresenter">
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
<Setter Property="VerticalContentAlignment" Value="Stretch" />
<Setter Property="Background" Value="{DynamicResource MaterialToolTipBackgroundBrush}" />
<Setter Property="Foreground" Value="{DynamicResource MaterialPaperBrush}" />
<Setter Property="Padding" Value="8" />
<Setter Property="MaxWidth" Value="{DynamicResource FlyoutThemeMaxWidth}" />
<Setter Property="MaxHeight" Value="{DynamicResource FlyoutThemeMaxHeight}" />
Expand Down Expand Up @@ -41,4 +39,10 @@

<ControlTheme x:Key="{x:Type FlyoutPresenter}" TargetType="FlyoutPresenter"
BasedOn="{StaticResource MaterialFlyoutPresenter}" />

<ControlTheme x:Key="MaterialInvertedFlyoutPresenter" TargetType="FlyoutPresenter"
BasedOn="{StaticResource MaterialFlyoutPresenter}">
<Setter Property="Background" Value="{DynamicResource MaterialToolTipBackgroundBrush}" />
<Setter Property="Foreground" Value="{DynamicResource MaterialPaperBrush}" />
</ControlTheme>
</ResourceDictionary>

0 comments on commit 70bf5ba

Please sign in to comment.