On Mon, 22 Jun 2026 15:13:13 GMT, Michael Strauß <[email protected]> wrote:

>> Add the `-fx-platform` media query (similar to `-moz-platform` in Firefox) 
>> that allows applications to switch styles based on the operating system on 
>> which the application is running.
>> 
>> 
>> ---------
>> - [x] I confirm that I make this contribution in accordance with the 
>> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai).
>
> Michael Strauß has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   remove "unix" platform

I am not using these features, preferring to build stylesheets 
programmatically, so please forgive my silly question:

Should the platform media query be tied to a particular look and feel instead 
of the hardware platform?  While it makes sense in many areas to have things 
like `PlatformUtil.isMac()` as a general guidance (like popup trigger on the 
mouse press instead of mouse release, or the use of `command` key vs `ctrl` 
key), we might have more than one look and feel per platform.  Boomer example: 
Windows 98 vs Windows Vista vs Windows 10 vs Windows 11 might need somewhat 
different stylesheets, or various desktop environments on Linux.

-------------

PR Comment: https://git.openjdk.org/jfx/pull/2193#issuecomment-4770797353

Reply via email to