Comments on StageStyle.EXTENDED
Michael Strauß
michaelstrau2 at gmail.com
Sat Sep 20 01:00:50 UTC 2025
This comment was received on the design document for the extended
stage style [0]:
> Linux -> Rounded Corners -> need investigation:
> The biggest issue is, that Gnome, for example, has pretty round
> windows by default, making the app look even more alien (custom
> color scheme and controls). Since I can't adjust the Stage's
> background, I have no means to do corners by myself (which I
> already did, when I created a custom window decoration for the
> app).
This was also brought up by Thiago during the development of this feature [1].
For the extended stage style we're using an undecorated window which
doesn't have rounded corners. What you'd probably need to have for a
custom-drawn approach is a stage style like EXTENDED_TRANSPARENT,
which seems to be very niche. In any case, EXTENDED is a replacement
for DECORATED, which means that it shouldn't be the responsibility of
the application developer to draw window decorations. So we're not
there yet when it comes to rounded window corners on Linux.
> Linux -> window buttons in general:
> On Gnome it's actually pretty rare to have three buttons at all.
> maximised is done via double click on the header, leaving
> minimizing and closing. But I can't change the visibility (or
> order) of the buttons.
> Additionally, native buttons can be configured in which order
> (and on which side) they are. I don't know if the current
> implementation takes that into account.
The current implementation does not take a custom button order into
account, and there is no API to change the button order or visibility.
This might be a future enhancement.
By the way, if you don't want the default buttons, you can pretty
easily bring your own buttons instead (see the documentation of
StageStyle.EXTENDED). If you own the buttons, you can change order and
visibility as you like.
[0] https://gist.github.com/mstr2/0befc541ee7297b6db2865cc5e4dbd09
[1] https://mail.openjdk.org/pipermail/openjfx-dev/2024-October/050141.html
More information about the openjfx-dev
mailing list