RFR: 8301302: Platform preferences API [v44]
Andy Goryachev
angorya at openjdk.org
Wed Dec 6 21:52:20 UTC 2023
On Wed, 6 Dec 2023 21:31:36 GMT, Michael Strauß <mstrauss at openjdk.org> wrote:
>> Please read [this document](https://gist.github.com/mstr2/9f46f92c98d3c86aa6a0b4224a9a6548) for an introduction to the Platform Preferences API, and how it interacts with the proposed style theme and stage appearance features.
>
> Michael Strauß has updated the pull request incrementally with one additional commit since the last revision:
>
> fixed bug in test application
The value does indeed change:
macOS.NSColor.alternatingContentBackgroundColors = [0x1e1e1eff,0xffffff0c]
macOS.NSColor.alternatingContentBackgroundColors = [0xffffffff,0xf4f5f5ff]
private String f(Object x) {
if (x == null) {
return "<null>";
}
if (x.getClass().isArray()) {
int sz = Array.getLength(x);
StringBuilder sb = new StringBuilder();
sb.append("[");
for (int i = 0; i < sz; i++) {
if (i > 0) {
sb.append(',');
}
sb.append(Array.get(x, i));
}
sb.append("]");
return sb.toString();
}
return x.toString();
}
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1014#issuecomment-1843744109
More information about the openjfx-dev
mailing list