AvaloniaCommunity / Material.Avalonia

Material design in AvaloniaUI
MIT License
840 stars 78 forks source link

The flyout uses the opposite theme variant #354

Closed JanSCPA closed 8 months ago

JanSCPA commented 8 months ago

Usage Information

3.4.2 / 11.0.9 / Win & Linux

Description

Hi!

the flyout using the dark variant uses the light style and vice versa.

Reproduction Steps

For reproduction the ButtonDemo.axaml-Page from the Demo can be used:

<Button Theme="{StaticResource MaterialOutlineButton}" Classes="light" Content="Test Button With Flyout"  >
  <Button.Flyout>
    <Flyout>
      <TextBox Watermark="Test" />
    </Flyout>
  </Button.Flyout>
</Button>

Expected Behavior

Dark Variant: Flyout using Dark-Styles

Actual Behavior

Dark Variant: Flyout using Light-Styles Light Variant: Flyout using Dark-Styles

Regression?

No response

Known Workarounds

No response

Anything else?

No response

Could you help with a pull-request?

No

Is there an existing issue for this?

SKProCH commented 8 months ago

I'll take a look