weather app effect: extend the HeaderBar to the full height, use that as the main container.
multiple HeaderBars is something we probably should avoid. -andy From: openjfx-dev <openjfx-dev-r...@openjdk.org> on behalf of Martin Fox <mar...@martinfox.com> Date: Friday, November 15, 2024 at 15:24 To: Michael Strauß <michaelstr...@gmail.com> Cc: OpenJFX <openjfx-dev@openjdk.org> Subject: Re: JEP: JavaFX controls in the title bar Perhaps a better app to look at is Mac Weather. The sidebar background color and translucency effects extend all the way to the top of the window. Easy to set up with multiple header bars, considerably more complicated with just one. If an application developer wants this effect we could either tell them to create multiple HeaderBars and make sure they’re all the same height (which is what they were probably planning to do anyway) OR we could tell them to use a single HeaderBarBase and roll their own solution from scratch including duplicating the SplitPane’s visuals. > On Nov 15, 2024, at 2:31 PM, Michael Strauß <michaelstr...@gmail.com> wrote: > > I don't really like the idea of supporting multiple HeaderBars. If we > did that, we'd have application developers deviating from the de-facto > implementation requirement that a HeaderBar be placed at the top of > the window, and extend its entire width. The Mac API that implements the split UI automatically creates enough toolbars to span the window, places them in the title bar area, and ensures they’re all the same height. I agree the JavaFX API is more piecemeal which would allow developers to mis-configure the UI. But why would they? I’m not going to press on this. It just seems that with a little tweaking we could make multiple HeaderBars work and it would provide a cleaner solution going forward. Martin