AvaloniaCommunity/Material.Avalonia

MaterialTextBoxBorderBrush is wrong when switching out theme at runtime

Mrxx99 opened this issue · 3 comments

Usage Information

3.4.0 / 11.0.9 / Windows 10

Description

Switching out the theme at runtime while also switching between light and dark will not update the MaterialTextBoxBorderBrush used e.g. in TextBox and ComboBox correctly leading to either a black brush on dark theme (which is barly visible) or a white brush on Light theme (which is completely invisible)

grafik

grafik

Reproduction Steps

A:

  1. check out the test repository https://github.com/Mrxx99/MaterialAvaloniaTest
  2. look at the textbox/combobox underline or the last border
  3. switch the theme with the toggle to dark
  4. look again at the textbox/combobox underline or the lasts border

B:

  1. Go to App.axaml and change BaseTheme to Dark
  2. look at the textbox/combobox underline or the lasts border
  3. switch the theme with the toggle to light
  4. look again at the textbox/combobox underline or the lasts border

Expected Behavior

Switchig between the light and dark theme updates the MaterialTextBoxBorderBrush correctly so e.g. TextBox or ComboBox are updated accoringly to the theme change

Actual Behavior

Brush is not updated correctly when switching themes, leading to barely visible to completely invisible lines in TextBox and ComboBox

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?

  • I have searched the existing issues

Yep, this is has been commented due to AvaloniaUI/Avalonia#12408

But since it has been resolved now I should return it back.

Should be resolved in 3.4.1. Reopen issue if it persist,

Thanks very much, issue is fixed