Skip to content

[Windows] Shell TitleColor changes not only the color of the title, but also the color of the secondary ToolbarItem's titles #20177

Open
@nicop85

Description

@nicop85

Description

I was trying to change the styles of the Shell. I wanted the text to be white with a coloured background. But when I did that, I wasn't able to read the secondary menu items text because they were also white but with a white background.

An example of what I mean:

Captura de pantalla 2024-01-26 121400

You are only able to read them, when the user move the mouse over the options.

It would be ideal to have different properties in the Styles.xaml for this two different texts.

Steps to Reproduce

  1. Create a new project
  2. Modify the Styles.xaml by changing the Shell.TitleColor to White and Shell.BackgroundColor to some other color
  3. Add at least one ToolbarItem to the Shell.Current.ToolbarItems list. The ToolbarItem must have a Text and the Order property have to be ToolbarItemOrder.Secondary.
  4. Run the project in Windows emulator.

Link to public reproduction project repository

https://github.com/nicop85/TestMenuItemsWinUI.git

Version with bug

8.0.3

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

No response

Did you find any workaround?

The workaround I found is to override the Shell.TitleView in all of my pages to be able to use a white colour and leaving the property Shell.TitleColor of the Styles.xaml with a black value.

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-controls-shellShell Navigation, Routes, Tabs, Flyoutarea-xamlXAML, CSS, Triggers, Behaviorspartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/windows 🪟proposal/opens/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions