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

Windows 11 misaligned title bar color #1228

Open
veler opened this issue Jun 15, 2024 · 5 comments
Open

Windows 11 misaligned title bar color #1228

veler opened this issue Jun 15, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@veler
Copy link
Collaborator

veler commented Jun 15, 2024

Current behavior

The color on title bar is misaligned. It should be invisible (non colorized):
image

How to reproduce it (as minimally and precisely as possible)

No response

Expected behavior

The colorized title bar should be smaller.

Screenshots

No response

Workaround

No response

Affected platforms

Windows

Affected DevToys kind

DevToys (app with GUI)

DevToys Version

2.0.1

Relevant Assets/Logs

No response

@veler veler added bug Something isn't working untriaged and removed untriaged labels Jun 15, 2024
@veler veler mentioned this issue Jun 15, 2024
18 tasks
@veler
Copy link
Collaborator Author

veler commented Jun 15, 2024

I reproduce the same issue in WPF Gallery App interestingly.

image

@veler veler closed this as not planned Won't fix, can't repro, duplicate, stale Jun 19, 2024
@veler veler reopened this Jun 25, 2024
@0x5bfa
Copy link
Contributor

0x5bfa commented Jun 28, 2024

Fyi, DevHome seemed to had this issue.

https://raw.githubusercontent.com/microsoft/devhomegithubextension/main/build/store/canary/media/ja-JP/github-setup.png

Color also must be green.

WPF Gallery
image

WPF UI app
image

Snipping Tool
image

Paint (Looks correct)
image

Is this some sort of issue with WinUI?

@niyari
Copy link
Contributor

niyari commented Jun 28, 2024

WIP

@veler
Copy link
Collaborator Author

veler commented Jun 29, 2024

Devtoys window is in WPF, so my guess is that it's a wpf specific problem, as your screenshots point it.

@niyari , did you find anything yet? I'm really struggling with this one.

@niyari
Copy link
Contributor

niyari commented Jun 29, 2024

I found that this was caused by the background color of the WPF content and WebView being set to transparent by default.
03

Specifying a background color in the Grid or webview tags in MainWindow.xaml or in the HTML content (e.g. body) in DevToys hides the WPF title bar, giving it a more natural appearance.
image

The easiest fix is ​​to make the .nav-bar-header color a constant using CSS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants