Skip to content

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

@nevse

Description

@nevse

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-controls-shellShell Navigation, Routes, Tabs, Flyoutplatform/androidplatform/ioss/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions