Java FX dark theme

Tom Schindl tom.schindl at bestsolution.at
Sat Jul 24 17:14:27 UTC 2021


Hi,

As the picture did not made it through i can only guess that we talk about the window trim who is controlled by the OS and so JavaFX has no control how it is drawn.

So the „solution“ is to use a StageStyle.UNDECORATED and draw a trim with min/max/close yourself, implement window resizer,...

 I‘ve put the word solution in quotes because once you do that you loose many native festures like snapping to other windows or desktop edges.

I gave a talk last year where i talk a bit about this stuff - https://m.youtube.com/watch?v=NusKg2ZWnrg the stuff you are interested in starts around minute 9:20

Tom

Von meinem iPhone gesendet

> Am 24.07.2021 um 18:14 schrieb Davide Perini <perini.davide at dpsoftware.org>:
> 
> Hi all,
> I am using some CSS rules to create a "dark theme".
> 
> Is it possible to change the color of the window?
> 
> 
> 
> As you can see in this picture I have a dark theme but the window border is white. can I change that color?
> 
> Thank you.
> Davide


More information about the openjfx-dev mailing list