Suggestions for StageStyle.UNIFIED on macOS

Sebastian Stenzel sebastian.stenzel at gmail.com
Mon Jul 17 14:56:05 UTC 2023


Other than announced, there wasn't any intend to deprecated `StageStyle.UNIFIED` yet. So I was wondering what is the status here? My suggestion to actually make it work (at least on one platform [1]) didn't seem to whip up much enthusiasm either.

I'm still open to invest time into this feature, but not without any reliable info about what is the plan for window decorations. Is any strategy in which direction OpenJFX should evolve? Or if you allow me to ask a bit of a cynical question: Are desktop apps still of interest? ;-)

[1] https://gist.github.com/overheadhunter/29af68f4c4eb7de28dd4a3a4772a0f09

> Am 09.02.2022 um 13:22 schrieb Sebastian Stenzel <sebastian.stenzel at gmail.com>:
> 
> Since there aren't any further comments on this, I assume there isn't much interest in this. Deprecating it is probably the right move, if it never worked as intended on any platform. I think I'm going to try and get this working as some kind of library instead.
> 
>> On 3. Feb 2022, at 20:55, Martin Fox <martin at martinfox.com <mailto:martin at martinfox.com>> wrote:
>> 
>> I took a look at this and discovered that UNIFIED doesn’t really work on any platform. It was never supported on Linux, the Mac implementation doesn’t really unify anything, and Windows is broken (see JDK-8154847 <https://bugs.openjdk.java.net/browse/JDK-8154847>). In that bug report it’s suggested that UNIFIED be deprecated.
>> 
>> I don’t think the UNIFIED API was ever complete. For example, I don’t see a way of querying the system to discover the location of the OS window controls so you can position your JavaFX controls appropriately.
>> 
>> Getting this right on the Mac would require some plumbing. We would need an API so we know which JavaFX controls are supposed to be in the unified title bar area so we can get the hit-testing right to enable dragging, title bar double-clicks, etc. I could imagine a new control that you could wrap around an existing control (like a Toolbar) that would handle the hit-testing and positioning correctly. I’m fuzzier on what it would take on Windows and there’s still the drawing problems to sort out.
>> 
>> Would be nice to have, the unified look is ascendant.
>> 
>> 
>> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20230717/b7544e52/attachment.htm>


More information about the openjfx-dev mailing list