compose-multiplatform icon indicating copy to clipboard operation
compose-multiplatform copied to clipboard

Window not transparent

Open smallshen opened this issue 4 years ago • 5 comments

import androidx.compose.desktop.ComposeWindow
import androidx.compose.ui.ExperimentalComposeUiApi
import java.awt.*
import javax.swing.SwingUtilities


@OptIn(ExperimentalComposeUiApi::class)
fun main() = SwingUtilities.invokeLater {
    ComposeWindow().apply {
        isUndecorated = true
        background = Color(0, 0, 0, 1)
        size = Dimension(300, 300)
        isVisible = true
    }
}

The window is white instead of transparent.

smallshen avatar Jun 07 '21 04:06 smallshen

Unfortunately, we do not support transparent window on all platforms at the moment.

olonho avatar Jun 07 '21 10:06 olonho

are there any plans for the desktop platform? transparent window in UI design is popular, like blur (compose doesn't support that too I think)

smallshen avatar Jun 07 '21 14:06 smallshen

No immediate plans for that, but we consider external contributions.

olonho avatar Jun 16 '21 07:06 olonho

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

okushnikov avatar Aug 26 '24 17:08 okushnikov