Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

menuflyout background incorrect after live color mode change #9241

Open
ghost opened this issue Oct 21, 2022 · 4 comments
Open

menuflyout background incorrect after live color mode change #9241

ghost opened this issue Oct 21, 2022 · 4 comments
Labels
area-Menus bug Something isn't working team-Controls Issue for the Controls team

Comments

@ghost
Copy link

ghost commented Oct 21, 2022

Which version of the app?

WinUI 3 Gallery

Description

  1. start 'winui 3 gallery'
  2. select 'menus and toolbars' -> 'menubar'
  3. under 'a simple menubar' click any 'menubaritem', for example 'help', -> the 'menuflyout' will show 'about'
  4. start 'windows settings'
  5. select 'personalization' -> 'colors'
  6. under 'choose your mode' change the value, for example from 'light' to 'dark' -> the color mode will change accordingly
  7. go back to 'winui 3 gallery'
  8. repeat 3., under 'a simple menubar' click any 'menubaritem', for example 'help', -> the 'menuflyout' will show 'about' with an incorrect background color (note: the 'menuflyoutitems have changed as expected)

Screenshots

  • step 3. in light mode
    light 3
  • step 8. after switching from light mode to dark mode
    light 8
  • step 3. in dark mode
    dark 3
  • step 8. after switching from dark mode to light mode
    dark 8

Windows version

Windows 11 22H2 (22621)

Additional context

No response

@JoeTomkinson
Copy link

Any update on if this will be fixed in an upcomming release, or if works been done to correct the default theme?

@karkarl
Copy link
Contributor

karkarl commented Nov 16, 2023

I wonder if there is a workaround for WinUI Gallery while the issue is being investigated on the WASDK side. Could the theme be set on flyout.loaded?

@marcelwgn
Copy link
Collaborator

I'm not sure if we can implement a way to solve this using the current API of MenuBar. There is no API that would expose the flyout as it is being created dynamically inside the MenuBarItem control. Guess this is a WinUI 3 issue then @karkarl?

@marcelwgn marcelwgn removed their assignment Nov 18, 2023
@karkarl karkarl transferred this issue from microsoft/WinUI-Gallery Jan 11, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Jan 11, 2024
Copy link

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@bpulliam bpulliam added area-Menus team-Controls Issue for the Controls team and removed needs-triage Issue needs to be triaged by the area owners labels Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Menus bug Something isn't working team-Controls Issue for the Controls team
Projects
None yet
Development

No branches or pull requests

5 participants