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

Shell menu is responding to system theme changes when an explicit theme is used #8582

Open
pekspro opened this issue Jul 7, 2022 · 2 comments
Labels
area-controls-shell Shell Navigation, Routes, Tabs, Flyout platform/windows 🪟 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@pekspro
Copy link

pekspro commented Jul 7, 2022

Description

The shell menu is changing background color when the app theme in Windows settings is changed. Even when an explicit theme should be used in the app. It seems to work as expected in Android.

Steps to Reproduce

  1. Create a new MAUI app.
  2. Setup the app do use the dark theme in App.xaml
<Application xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:local="clr-namespace:MauiIssues"
             UserAppTheme="Dark"
             x:Class="MauiIssues.App">
  1. In AppShell.xaml, set Shell.FlyoutBehavior to Locked
<Shell
    x:Class="MauiIssues.AppShell"
    xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    xmlns:local="clr-namespace:MauiIssues"
    Shell.FlyoutBehavior="Locked">
  1. Go into the Windows settings and set the app theme to dark, and then switch to light.
  2. Now the app looks like this:

image

Full sample project: https://github.com/pekspro/MauiIssues/tree/8582_Shell_menu_is_responding_to_system_theme_changes

Version with bug

6.0.400 (current)

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

Windows 10.0.17763.0

Did you find any workaround?

No

Relevant log output

No response

@pekspro pekspro added s/needs-verification Indicates that this issue needs initial verification before further triage will happen t/bug Something isn't working labels Jul 7, 2022
@jsuarezruiz jsuarezruiz added area-controls-shell Shell Navigation, Routes, Tabs, Flyout platform/windows 🪟 s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed and removed s/needs-verification Indicates that this issue needs initial verification before further triage will happen labels Jul 7, 2022
@pekspro
Copy link
Author

pekspro commented Aug 5, 2022

Has this been resolved? Seems to work as expected in 6.0.400-preview.22330.6.

@samhouts samhouts removed s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Apr 5, 2023
@XamlTest XamlTest added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels May 19, 2023
@XamlTest
Copy link

Verified this on Visual Studio Enterprise 17.7.0 Preview 1.0. This issue does not repro on Android 13.0, repro on Windows 11 with below Project:
MauiApp16.zip

7.0.400-preview.23225.8
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-shell Shell Navigation, Routes, Tabs, Flyout platform/windows 🪟 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants