FluentAvalonia icon indicating copy to clipboard operation
FluentAvalonia copied to clipboard

Text alignment is not vertically centered in MacOS, Linux

Open rocksdanister opened this issue 1 year ago • 4 comments

Describe the bug The text alignment is not vertically centered in some controls like ComboBox. The margin between Header and Description in Expander is also a bit short.

Screenshots image MacOS

image Linux

image Windows 11 for comparison

Desktop/Platform (please complete the following information):

  • OS: MacOS Sequoia, Fedora
  • FluentAvalonia Version: 2.1.0
  • Avalonia Version: 11.2.0-rc1

Additional context Looks like it should be fixed by https://github.com/amwx/FluentAvalonia/issues/128, TextVerticalAlignmentOverride is not set(default.)

rocksdanister avatar Oct 13 '24 22:10 rocksdanister

https://amwx.github.io/FluentAvaloniaDocs/pages/FATheme/Misc

amwx avatar Nov 29 '24 22:11 amwx

Maybe I am reading the docs wrong.. I did not set TextVerticalAlignmentOverride which means EnabledNonWindows (default) the fix should be enabled right?

rocksdanister avatar Nov 30 '24 01:11 rocksdanister

Ok, so this is actually a larger bug with how FATheme initializes, which was likely introduced when it was converted to a xaml file to accommodate AOT - so its been a while. Investigating a fix...

amwx avatar Dec 01 '24 00:12 amwx

I am not sure about that, text appears to be aligned correctly on Ubuntu distro.

image

rocksdanister avatar Dec 02 '24 03:12 rocksdanister