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)
Reproduction Steps
A:
- check out the test repository https://github.com/Mrxx99/MaterialAvaloniaTest
- look at the textbox/combobox underline or the last border
- switch the theme with the toggle to dark
- look again at the textbox/combobox underline or the lasts border
B:
- Go to App.axaml and change BaseTheme to Dark
- look at the textbox/combobox underline or the lasts border
- switch the theme with the toggle to light
- 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