On Tue, 5 Nov 2024 01:13:39 GMT, Michael Strauß <[email protected]> wrote:
>> modules/javafx.graphics/src/main/java/com/sun/glass/ui/WindowControlsOverlay.java
>> line 199:
>>
>>> 197: */
>>> 198: private final StyleableBooleanProperty allowRtl =
>>> 199: new SimpleStyleableBooleanProperty(ALLOW_RTL_METADATA, this,
>>> "allowRtl", true) {
>>
>> why is `allowRtl` a property and not a simple flag?
>> why is it allowed to be changed via CSS via `-fx-allow-rtl`?
>
> The purpose is to allow JavaFX developers (that is us, not users of JavaFX)
> to define the entire appearance of `WindowControlsOverlay` with a CSS file.
> This should make it easier to maintain it, since we won't have to keep
> looking in two places to change the appearance.
I don't understand: why the orientation of EXTENDED window be different from
that of the platform (unless explicitly configured with Scene.nodeOrientation)?
-------------
PR Review Comment: https://git.openjdk.org/jfx/pull/1605#discussion_r1829620861