-
Notifications
You must be signed in to change notification settings - Fork 473
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
8343336: Add persistentScrollBars preference #1618
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. |
@mstr2 has indicated that a compatibility and specification (CSR) request is needed for this pull request. @mstr2 please create a CSR request for issue JDK-8343336 with the correct fix version. This pull request cannot be integrated until the CSR request is approved. |
Webrevs
|
This looks like a useful data point. I am curious as to what are the criteria for including or excluding a particular preference? What is our long term goal - should we support all the preferences available on a particular platform, or the intersection, or what? May be it's something to discuss first on the mailing list. |
My thinking is that a particular preference should be useful and almost universally supported on the desktop platforms to make it into JavaFX API. The number of preferences we might consider are pretty limited, so I don't expect I think this is a minor addition that doesn't change anything substantial about |
Changed the naming from |
This seems like the right criteria to me.
Good.
With this explanation, I agree. |
Reviewers: @andy-goryachev-oracle @lukostyra (I'll look over the public API and the CSR) |
* @defaultValue {@code false} | ||
* @since 24 | ||
*/ | ||
ReadOnlyBooleanProperty persistentScrollBarsProperty(); |
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.
Do you also plan to add new platform-specific preferences or do you think this is unnecessary?
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.
I added the respective platform-specific keys to the Preferences
documentation.
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.
the code changes look good, and both the property and the key reflect the platform preference on macOS M1 14.7.
I'll test windows tomorrow, and if someone can test it on linux, that would be fantastic!
This PR adds another accessibility preference that is available on all supported desktop platforms:
When the OS setting is changed, all platforms report updates that can be observed in JavaFX.
The manual test application
test/manual/events/PlatformPreferencesChangedTest
can be used to test the feature./reviewers 2
/csr
Progress
Issues
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jfx.git pull/1618/head:pull/1618
$ git checkout pull/1618
Update a local copy of the PR:
$ git checkout pull/1618
$ git pull https://git.openjdk.org/jfx.git pull/1618/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 1618
View PR using the GUI difftool:
$ git pr show -t 1618
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jfx/pull/1618.diff
Using Webrev
Link to Webrev Comment