When using an undecorated window and `WindowDragga...
# compose-desktop
s
When using an undecorated window and
WindowDraggableArea
, is it possible to get the Windows window management tools (see screenshot) when moving the app to the top of my screen?
u
@S. it 's possible with the jbr, you can check in the intellig repo, in the jewel module, how they do that with their decoratedwindow
s
thanks I'll take a look
that's definitely it, great to customize. but I found it doesn't play nice with menu bars
image.png
although I think those default menu bars aren't really state of the art anymore
a
@S. if you just want to change the titlebar color with support of menubars you can also check out the flatlaf library. (it's mainly for swing but you can also use it for compose projects) however if you want to combine your UI with the titlebar the JBR-API gives you full control. I also implemented it in https://github.com/amir1376/ab-download-manager/ however I completely disabled system buttons and added my own system buttons and menu bars using compose (you can see it by enabling "Merge Titlebar with Menubar" in the app settings
s
tbh I always forget swing is an option for desktop, but yeah jbr was exactly what I needed