JFXtras/jfxtras-styles

Some suggestions of Jmetro on Windows 11

Etern-34520 opened this issue · 1 comments

Hi.Jmetro is very harmonious on Windows 10. It is also good on Windows 11, but it does not support the dark mode of Windows 11 (or does JavaFX not support it?): The title bar is still bright white (all other applications are normal). My suggestion is to add a rounded UI CSS. As for the title bar problem, I will try to solve it myself.

Attachment: I am a Chinese high school student. I am using Jmetro to beautify my JavaFX application. I am using a machine translator. Therefore, there may be some errors. Please forgive me for the inconvenience.
image

dukke commented

Hi @Etern-34520

Sorry for the late reply.
Thanks, I'm glad you like JMetro.

JavaFX doesn't provide nice ways to style the title bar of a window unfortunately. The best way I see to fix this would be to create a component (probably separate from JMetro) that has a Window that adapts to the dark mode of Windows and paints its frame accordingly. Or better yet, for the JavaFX framework to provide that.