AvaloniaCommunity / Material.Avalonia

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

No outline theme for AutoCompleteBox (working code provided) #370

Open buzzware opened 7 months ago

buzzware commented 7 months ago

Usage Information

3.5.0 / 11.0.10 / Desktop (Mac)

Description

There is no outline theme for AutoCompleteBox

Reproduction Steps

There is no theme defined in https://github.com/AvaloniaCommunity/Material.Avalonia/blob/master/Material.Styles/Resources/Themes/AutoCompleteBox.axaml

Expected Behavior

An outline theme to exist for AutoCompleteBox. I find the default Material underline style unsatisfactory.

Actual Behavior

It doesn't exist

Regression?

no

Known Workarounds

none known

Anything else?

I have created a repository https://github.com/buzzware/AutoCompleteBoxPlay demonstrating my own attempt at an outline theme by smooshing together the ComboBox outline and default AutoCompleteBox themes, but I have very little experience with WPF or Avalonia, and I have spent too much time already getting this to work well enough for my project.

I hope someone more familiar and experienced with best practices to implement it properly.

Could you help with a pull-request?

No

Is there an existing issue for this?

SKProCH commented 7 months ago

Should be covered with #327 when it will be done. (idk how long it takes)

SKProCH commented 7 months ago

Also, you can probably try to change the theme for PART_TextBox in AutoCompleteBox.axaml and copy the styles to your own project.