dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
21.97k stars 1.72k forks source link

[regression/8.0.0] [Android] .NET 8 TabBar Title is bold vs .NET 7 TabBar which is not bold #18574

Open Kaiffa opened 10 months ago

Kaiffa commented 10 months ago

Description

As title says. Why is the title changed to bold? Is this a bug or is this by design? If it's by design how do we change it back to not bold?

NET 8: Screenshot_1699370527

NET 7: Screenshot_1699370754

Steps to Reproduce

  1. New MAUI project
  2. Add a tabbar in the AppShell.xaml:

`

<ShellContent Title="Tab 2" ContentTemplate="{DataTemplate local:MainPage}" />
<ShellContent Title="Tab 3" ContentTemplate="{DataTemplate local:MainPage}" />

`

MainPage is a simple page

Link to public reproduction project repository

No response

Version with bug

8.0.0-rc.2.9511

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

7.0.100

Affected platforms

Android

Affected platform versions

Android 13.0

Did you find any workaround?

No

Relevant log output

No response

PureWeen commented 10 months ago

My guess is that the font loading code changed between NET8/NET7

XamlTest commented 10 months ago

Verified this on Visual Studio Enterprise 17.8.0 Preview 7.0. Repro on Android 14.0-API34(8.0.0-rc.2.9530), not repro on Android 14.0-API34(7.0.96) and Windows 11 with below Project: 18574.zip

Xideta commented 3 months ago

Also happens to the icons each tab can have, which causes a somewhat annoying misalignment of the selected tab.