Spikey Sanju
02/07/2022, 10:19 PMKirill Grouchnikov
02/07/2022, 10:23 PMundecorated=true
to your Window
composable. Once you do that, you lose everything provided by the native OS window decorations - resizing, minimizing, maximizing, dragging, etc - and you'll need to provide that functionality yourself.Spikey Sanju
02/07/2022, 10:35 PMundecorated=true
attribute, and it seems to work fine. However, will it be possible to add dragging and resizing support for this element? Do you have any sample code?
2. Could we get a tint
or blur effect
on the window toolbar?Kirill Grouchnikov
02/07/2022, 10:51 PMandroidx.compose.foundation.window.WindowDraggableArea
can be used to get the draggable title bar. There is nothing that I know of yet that would provide out of the box support for resizing an undecorated window from edges and corners. I have some sample code at https://github.com/JetBrains/compose-jb/issues/1773 but the resizing overall (which might be coming as Swing / AWT legacy) is pretty janky.
Tinting, translucency, blurring are available if you drop down to the underlying native OS APIs (mica / acrylic on Windows, for example), but there's nothing that would expose that at the Compose window level. Nor am I sure that such APIs can realistically be provided given different approaches by the platforms.Thomas
02/07/2022, 11:08 PMSpikey Sanju
02/08/2022, 6:44 PM