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.99k stars 1.72k forks source link

Shell Tabbed App - can't change color for items placed in more items menu #6740

Open nevse opened 2 years ago

nevse commented 2 years ago

Description

When I have a lot of tabs on shell page I can't change color for items inside more menu.

I use the folowing styles in xaml

<Style x:Key="BaseStyle" TargetType="Element">
        <Setter Property="Shell.BackgroundColor" Value="Green" />
        <Setter Property="Shell.ForegroundColor" Value="Red" />
        <Setter Property="Shell.TitleColor" Value="Blue" />
        <Setter Property="Shell.DisabledColor" Value="Red" />
        <Setter Property="Shell.UnselectedColor" Value="Yellow" />
        <Setter Property="Shell.NavBarHasShadow" Value="False" />
        <Setter Property="Shell.TabBarBackgroundColor" Value="Blue" />
        <Setter Property="Shell.TabBarForegroundColor" Value="Red" />
        <Setter Property="Shell.TabBarTitleColor" Value="Red" />
        <Setter Property="Shell.TabBarUnselectedColor" Value="Yellow" />
    </Style>
    <Style BasedOn="{StaticResource BaseStyle}" TargetType="ShellItem" ApplyToDerivedTypes="True" />

    <Style TargetType="TabbedPage">
        <Setter Property="BarBackgroundColor" Value="Red" />
        <Setter Property="BarTextColor" Value="Red" />
        <Setter Property="UnselectedTabColor" Value="Yellow" />
        <Setter Property="SelectedTabColor" Value="Red" />
    </Style>
image

Steps to Reproduce

  1. Grab project from https://github.com/nevse/Maui-Tests-ShellVsTabsMoreItemsMenu
  2. run dotnet build -t:Run -f:net6.0-android
  3. click on "..." menu to show more menu.

Item should be colorized.

Version with bug

Release Candidate 2 (current)

Last version that worked well

Unknown/Other

Affected platforms

iOS, Android

Affected platform versions

android 31

Did you find any workaround?

No response

Relevant log output

No response

kristinx0211 commented 2 years ago

verified repro on IOS 15.4 with above project.

ghost commented 2 years ago

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

Zhanglirong-Winnie commented 1 year ago

Verified this issue with Visual Studio Enterprise 17.6.0 Preview 2.0. Repro on Android and iOS platform with sample project. Maui-Tests-ShellVsTabsMoreItemsMenu-main.zip image

bptf-iaps commented 4 months ago

It's been a year and a half since backlogged. Any workaround?