Java FX dark theme
Sebastian Stenzel
sebastian.stenzel at gmail.com
Sun Jul 25 13:43:38 UTC 2021
The tray icon is (imho) the last important components that is missing in OpenJFX for desktop applications. At the moment you need to use AWT or native libs.
You can of course create the icon without a menu and implement an undecorated stage with custom styling that you position next to the icon when the user clicks it.
> Am 25.07.2021 um 13:39 schrieb Davide Perini <perini.davide at dpsoftware.org>:
>
> Subscribed to the channel, very interesting chanenel congrats.
> I'll do the way you suggested, thanks!
>
> Do you have some tips on how to style the tray icon?
> I have implemented a tray icon following this tutorial
> https://docs.oracle.com/javase/tutorial/uiswing/misc/systemtray.html
> but styling a popup menu seems impossible...
>
> Tanks you
> Davide
>
>
> Il 24/07/2021 19:14, Tom Schindl ha scritto:
>> 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 <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