-
Notifications
You must be signed in to change notification settings - Fork 532
8362091: Window title bar should reflect scene color scheme #1845
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
base: master
Are you sure you want to change the base?
Conversation
👋 Welcome back mstrauss! A progress list of the required criteria for merging this PR into |
❗ This change is not yet ready to be integrated. |
# Conflicts: # modules/javafx.graphics/src/main/native-glass/mac/GlassWindow.m
// We are going to query the file version of dwmapi.dll to make sure we use the right constant, or the | ||
// value 0 to indicate that we don't support this feature. | ||
// See: https://github.com/MicrosoftDocs/sdk-api/commit/c19f1c8a148b930444dce998d3c717c8fb7751e1 | ||
static const DWORD DWMWA_USE_IMMERSIVE_DARK_MODE = []() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This implementation looks correct. For comparison, I checked out the implementation in Godot
.
Version check: https://github.com/godotengine/godot/blob/master/platform/windows/display_server_windows.cpp#L6853
Set the attribute: https://github.com/godotengine/godot/blob/master/platform/windows/display_server_windows.cpp#L4708
Note that the build
numbers differ a little bit from here. But checking your linked commit, your numbers seem to be the right one! Will do some testing later (on Windows 11).
Hi @bundgaard, thanks for making a comment in an OpenJDK project! All comments and discussions in the OpenJDK Community must be made available under the OpenJDK Terms of Use. If you already are an OpenJDK Author, Committer or Reviewer, please click here to open a new issue so that we can record that fact. Please Use "Add GitHub user bundgaard" for the summary. If you are not an OpenJDK Author, Committer or Reviewer, simply check the box below to accept the OpenJDK Terms of Use for your comments.
Your comment will be automatically restored once you have accepted the OpenJDK Terms of Use. |
We have two places in JavaFX that are relevant to dark mode:
This PR proposes to match the OS-provided title bar color to the value of
|
Currently, the color scheme of a system-decorated stage is as follows:
The expected behavior is that the title bar matches the color scheme of the
Scene
.If an application doesn't specify a color scheme, the title bar color should match the OS color scheme.
This PR fixes the behavior for Windows and macOS, but not for Linux (there's no good way to do that).
Depending on how you look at it, this is either a bug fix or an enhancement.
/reviewers 2
Progress
Issue
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jfx.git pull/1845/head:pull/1845
$ git checkout pull/1845
Update a local copy of the PR:
$ git checkout pull/1845
$ git pull https://git.openjdk.org/jfx.git pull/1845/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 1845
View PR using the GUI difftool:
$ git pr show -t 1845
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jfx/pull/1845.diff
Using Webrev
Link to Webrev Comment