CSS Media Queries

Andy Goryachev andy.goryachev at oracle.com
Mon Dec 2 19:04:00 UTC 2024


At first glance, this proposal looks good, with it we could provide a dark mode stylesheet.

Questions:
1. what are the plans / commitments for actually developing the dark mode stylesheet?
2. are there plans / necessity of adding more similar properties to the Scene?

3. are there plans to provide a similar proposal for variables, for example to be able to size controls consistently https://bugs.openjdk.org/browse/JDK-8314683 ?

One more tangentially related question: do you think it's possible to be able to determine which selector in which stylesheet was used, for debugging purposes?  For example, be able to enable logging?

Thanks!
-andy



From: openjfx-dev <openjfx-dev-retn at openjdk.org> on behalf of Michael Strauß <michaelstrau2 at gmail.com>
Date: Monday, December 2, 2024 at 08:23
To: openjfx-dev <openjfx-dev at openjdk.org>
Subject: CSS Media Queries
Hi everyone,

here's a proposal to add media queries to JavaFX, which is a powerful
feature to adjust stylesheets to changes in the runtime environment.

Proposal: https://gist.github.com/mstr2/cbb93bff03e073ec0c32aac317b22de7
PR: https://github.com/openjdk/jfx/pull/1655
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20241202/b657dad5/attachment.htm>


More information about the openjfx-dev mailing list