microsoft-ui-xaml icon indicating copy to clipboard operation
microsoft-ui-xaml copied to clipboard

ExtendsContentIntoTitleBar with light theme in WASDK 1.4 barely visible maximize,minimize,close buttons

Open vash72 opened this issue 2 years ago • 7 comments

Describe the bug

barely visible maximize,minimize,close buttons

Steps to reproduce the bug

open WinUi 3 Gallery with light theme

ExtendsContentIntoTitleBar=true, App RequestedTheme="Light"

Expected behavior

clearly visible maximize,minimize,close buttons

Screenshots

immagine

NuGet package version

Windows App SDK 1.4.0: 1.4.230822000

Packaging type

No response

Windows version

Windows 10 version 22H2 (19045, 2022 Update)

IDE

No response

Additional context

No response

vash72 avatar Sep 12 '23 09:09 vash72

Interestingly, I have it the other way around.

Screenshot 2023-09-13 012213

What's more, I don't see this in a Windows API application.

Screenshot 2023-09-12 150750

Screenshot 2023-09-13 012438

So I am wondering if this is a WinUI 3 issue, not a Windows App SDK issue.

DarranRowe avatar Sep 13 '23 00:09 DarranRowe

I have the same issue as you @vash72 . I build apps for Windows 11 and when I upgraded my recent project to Windows App SDK latest version (1.4.230822000) the Captions buttons had the same issues. I can't wait to see a fix soon !

kpavlis avatar Sep 13 '23 17:09 kpavlis

I confirm, dark App, dark blue title bar (extended on), black system icons merely visible...

LucaCris avatar Sep 30 '23 10:09 LucaCris

I confirm, dark App, dark blue title bar (extended on), black system icons merely visible...

if you to need the custom title bar in 1.4, you can move away from Window.ExtendsContentIntoTitleBar and use the new APIs under Window.AppWindow.TitleBar

public MainWindow()
{
        AppWindow.TitleBar.ExtendsContentIntoTitleBar = true;

        InitializeComponent();
}

vash72 avatar Oct 02 '23 09:10 vash72

    AppWindow.TitleBar.IconShowOptions = IconShowOptions.HideIconAndSystemMenu;

I need them... Clearly visible... :)

LucaCris avatar Oct 04 '23 17:10 LucaCris

same probleme here, but found a workaround (I am using MAUI) AppWindow.TitleBar.ButtonForegroundColor = Microsoft.UI.Colors.Black; //Or white in dark mode

baaaaif avatar Oct 12 '23 07:10 baaaaif

@vash72 it should work now with: Window.AppWindow.TitleBar.PreferredTheme = Microsoft.UI.Windowing.TitleBarTheme.UseDefaultAppMode;

bogdan-patraucean avatar Nov 15 '25 23:11 bogdan-patraucean