-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
Native Windows title bar does not respect dark mode setting #84453
Comments
(Experimental duplicate detection) |
@deepak1556, this is really an electron feature request |
@sbatten electron fixed this in 7 and also exposed a new module to allow apps customize it electron/electron#19656 |
@MolusMS can you try the exploration builds from #84214 (comment) to make sure this is fixed with electron 7. Thanks! |
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines. Happy Coding! |
Verified that this is not fixed in electron 7, we would have to listen to OS events using the above module and set the app color. |
After some investigation, this is a bug in chrome as well, launch chrome with |
This goes for the light theme as well. The app does not use the Windows 10 Theme App Title colors for focused / non-focused. |
cough undocumented APIs for dark titlebars cough |
Adding upstream Chromium issue link https://bugs.chromium.org/p/chromium/issues/detail?id=1127795 |
I tried setting some breakpoints and noticed that https://source.chromium.org/chromium/chromium/src/+/main:ui/views/window/non_client_view.cc;l=113;bpv=1;bpt=1 gets hit. But, I didn't find a corresponding I then noticed that other non-Chromium Windows app titlebars weren't picking up the system colour either, so I looked around and saw microsoft/microsoft-ui-xaml#2484, which still hasn't been implemented. |
I just realized that the original issue is saying that if the user picks a dark mode theme, then the native titlebar colour should also be the dark mode colour. I'm not as sure about this. On macOS, for example, the native titlebar colour goes by the OS theme, and same with cmd.exe on Windows. Changing the issue scope so that we're going by OS theme instead. |
Looks like I forgot to add steps.
|
After also changing my app mode to dark mode, the title bar is black. Is that expected @rzhao271? |
Reopening since we're switching back Electron versions. |
Verification steps: |
From my point of view, native titlebar does respect theme color EVENTUALLY. During VS Code launch first empty un-themed window appears (looks like un-themed (basic theme) windows 10, light blue titlebar which really cuts your eyes when in dark mode ). |
That's a separate issue: #146683 |
Issue Type: Bug
I have the dark theme on VSCode, if I set the window.titleBarStyle to native, the title bar does not pick up the dark color.
VS Code version: Code - Insiders 1.41.0-insider (27cd33d, 2019-11-08T19:12:35.358Z)
OS version: Windows_NT x64 10.0.19514
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off
surface_control: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off
webgl: enabled
webgl2: enabled
Extensions (3)
The text was updated successfully, but these errors were encountered: