Skip to content

Commit

Permalink
Merge pull request #355 from AvaloniaCommunity/removeInvertedFlyoutCo…
Browse files Browse the repository at this point in the history
…lors

Removes the inverted theme colors from default FlyoutPresenter. Adds …
  • Loading branch information
SKProCH authored Mar 5, 2024
2 parents 68aa347 + 70bf5ba commit 88e87f4
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 88e87f4

Please sign in to comment.