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

WinUI 3 app started via debugger will always have unicolor (black) title bar #9987

Closed
whiskhub opened this issue Sep 13, 2024 · 1 comment
Closed
Labels
area-AppWindow area-LiveVisualTree bug Something isn't working team-CompInput Issue for IXP (Composition, Input) team

Comments

@whiskhub
Copy link

Describe the bug

WinUI 3 apps started via the Visual Studio debugger will always show a unicolor (black/white) title bar based on the Windows color theme. No Mica effect will be shown.

Setting DWMWA_USE_IMMERSIVE_DARK_MODE via DwmSetWindowAttribute has no influence here.

Starting the app via start menu etc. will instead always show a light Mica title bar, which is the default and expected Win32 behavior.

Steps to reproduce the bug

  1. Create blank WinUI 3 app
  2. Start the app via Visual Studio debugger
  3. You will see an unicolor black/white title bar

Expected behavior

Same behavior for the title bar color if starting the app via Visual Studio debugger, or in other ways like start menu. Currently expected behavior would be a light Mica title bar.

Screenshots

Title bar when started via Visual Strudio:
image

Title bar when started via start menu:
image

NuGet package version

WinUI 3 - Windows App SDK 1.6.0: 1.6.240829007

Windows version

Windows 11 (22H2): Build 22621

Additional context

No response

@whiskhub whiskhub added the bug Something isn't working label Sep 13, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Sep 13, 2024
@codendone codendone added area-Tooling team-Markup Issue for the Markup team area-LiveVisualTree area-AppWindow team-CompInput Issue for IXP (Composition, Input) team and removed needs-triage Issue needs to be triaged by the area owners area-Tooling team-Markup Issue for the Markup team labels Sep 13, 2024
@codendone
Copy link
Contributor

Actually, this is caused by #9988. Turning off the "Enable in-app toolbar" option in the Debugging->XAML Hot Reload settings in Visual Studio makes this go away. The in-app toolbar needs to know if ExtendsContentIntoTitleBar is set, which is how #9988 is triggered. We'll track with that issue.

@codendone codendone closed this as not planned Won't fix, can't repro, duplicate, stale Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-AppWindow area-LiveVisualTree bug Something isn't working team-CompInput Issue for IXP (Composition, Input) team
Projects
None yet
Development

No branches or pull requests

2 participants