-
Notifications
You must be signed in to change notification settings - Fork 534
8367370: Accent color platform preference not updating in macOS 26 (Tahoe) #1895
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
Conversation
👋 Welcome back mstrauss! A progress list of the required criteria for merging this PR into |
@mstr2 This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 19 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
I was able to test this on macOS 13, 15, and 26 RC. I only focused on changes to the dark/light appearance, accent color, and highlight color. All versions of the OS behaved identically and updated the platform preferences reliably. Under the hood I can see that I don't consider these bugs but this is a change from the old behavior. "Graphite" is a special accent color which also affects things like the stoplight controls in the title bar which go grayscale. |
That's probably because the one-second delay to pick up the accent color is no longer necessary with the correct notification APIs. In general, we don't specify how preference change notifications are delivered. I've previously proposed change aggregation on the Java side, because multiple notifications are also a thing on Windows. |
/reviewers 2 |
@kevinrushforth |
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.
Changes look fine to me and are working on macOS 13, 15, and 26.
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.
Changes look good to me. I tested on macOS 14 (no change in behavior) and 26 (notification now works where it didn't before).
/integrate |
I think this fix should be backported to jfx25u. |
Going to push as commit 7a4ec27.
Your commit was automatically rebased without conflicts. |
/backport jfx25u |
@mstr2 the backport was successfully created on the branch backport-mstr2-7a4ec274-master in my personal fork of openjdk/jfx25u. To create a pull request with this backport targeting openjdk/jfx25u:master, just click the following link: The title of the pull request is automatically filled in correctly and below you find a suggestion for the pull request body:
If you need to update the source branch of the pull then run the following commands in a local clone of your personal fork of openjdk/jfx25u:
|
AppleColorPreferencesChangedNotification
withNSSystemColorsDidChangeNotification
.AppleInterfaceThemeChangedNotification
with a KVO registration forNSApp.effectiveAppearance
.This fix can be tested using either PlatformPreferencesChangedTest, or Monkey Tester > Tools > Platform preferences monitor.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jfx.git pull/1895/head:pull/1895
$ git checkout pull/1895
Update a local copy of the PR:
$ git checkout pull/1895
$ git pull https://git.openjdk.org/jfx.git pull/1895/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 1895
View PR using the GUI difftool:
$ git pr show -t 1895
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jfx/pull/1895.diff
Using Webrev
Link to Webrev Comment