I like this idea and also agree that Modena looks dated.
I also understand John's concerns.
In my mind, I would mix both approaches:
- A new Theme that follows modern approaches and make use of the new features like media queries
- The theme is therefore more accessible (by default), takes into account the theme, high contrast, transparency, reduced motion and accent colors
- The Theme is also much more easy to customize.
Modena is, as of now, not. It is possible, sure, but a lot work is needed. Especially when you want to support all the things mentioned above
- A new theme can therefore be created very quickly. The documentation is good (in the CSS and reference manual)
-> Example: It should be easy to change from/to rounded or flat corners (e.g. using a variable)
If you want to do that now, you need to overwrite the '-fx-background-radius' for a lot of Controls.
 
These are things that come to mind.
And that will be very helpful when creating a customized theme and incorporating the corporate style of the project.
 
I agree that more details can be discussed here so that we can all decide together what the new theme should look like.
 
-- Marius
 
Gesendet: Dienstag, 3. Dezember 2024 um 01:03
Von: "Michael Strauß" <michaelstr...@gmail.com>
An: "Kevin Rushforth" <kevin.rushfo...@oracle.com>
CC: openjfx-dev <openjfx-dev@openjdk.org>
Betreff: A new theme for JavaFX
Continuing the discussion that was started in the CSS media queries thread:


On Mon, Dec 2, 2024 at 11:55 PM Kevin Rushforth
<kevin.rushfo...@oracle.com> wrote:
> > I'm thinking a bit bigger than just "Modena Dark". Since JFX 19, we've
> > added focusVisible, platform preferences, CSS transitions, and now
> > hopefully media queries. After this is done, I think we should
> > leverage all of those new features, and create a bold new theme for
> > JavaFX that feels at home in the year 2025.
>
> Depending on the scope, that's a pretty ambitious goal. :) Were you
> thinking of something derived from Modena (e.g., a "Modena 2025") that
> incorporates all of those things and maybe a few other tweaks? Or are
> you thinking a brand new "from scratch" theme? Based on past experience
> (the switch from Caspian to Modena in FX 8), the latter will require
> quite a lot of work, and someone with a good artistic eye and attention
> to detail to drive it. I expect it would be a fairly long process and
> require a *lot* of testing.
>
> Anyway, that doesn't need to slow down this feature. This feature would
> help with either approach. And application developers would be able to
> take advantage in their own stylesheets before that.


While I think that Modena is a nice-looking theme, I can't help but
think that it's a nice-looking theme for the mid-2010's. It dates the
JavaFX platform, and its look and feel is the first thing that people
see when they interact with JavaFX (either with the framework itself,
or with user-facing applications). The UI landscape has evolved quite
a lot in the past decade. I think there is great value in completely
modernizing the JavaFX user experience, firmly and boldly moving it
forward, and making the framework attractive again for a new
generation of developers.

Ideally, this is more than a "Modena 2025" refresh. I completely agree
that this is a big project, and it requires talented people to pull it
off. However, there _are_ talented UI designers and developers in the
JavaFX community. I hope this will start a discussion on how a modern
JavaFX user experience can look like, and how we'd be able to achieve
it.

Reply via email to