|
|
@ -107,7 +107,6 @@ object TrayIcon : Painter() { |
|
|
|
Please note, that it is possible to create a Tray application without Window: |
|
|
|
Please note, that it is possible to create a Tray application without Window: |
|
|
|
|
|
|
|
|
|
|
|
```kotlin |
|
|
|
```kotlin |
|
|
|
import androidx.compose.ui.ExperimentalComposeUiApi |
|
|
|
|
|
|
|
import androidx.compose.ui.geometry.Size |
|
|
|
import androidx.compose.ui.geometry.Size |
|
|
|
import androidx.compose.ui.graphics.Color |
|
|
|
import androidx.compose.ui.graphics.Color |
|
|
|
import androidx.compose.ui.graphics.drawscope.DrawScope |
|
|
|
import androidx.compose.ui.graphics.drawscope.DrawScope |
|
|
@ -115,7 +114,6 @@ import androidx.compose.ui.graphics.painter.Painter |
|
|
|
import androidx.compose.ui.window.Tray |
|
|
|
import androidx.compose.ui.window.Tray |
|
|
|
import androidx.compose.ui.window.application |
|
|
|
import androidx.compose.ui.window.application |
|
|
|
|
|
|
|
|
|
|
|
@OptIn(ExperimentalComposeUiApi::class, androidx.compose.foundation.ExperimentalFoundationApi::class) |
|
|
|
|
|
|
|
fun main() = application { |
|
|
|
fun main() = application { |
|
|
|
Tray( |
|
|
|
Tray( |
|
|
|
icon = TrayIcon, |
|
|
|
icon = TrayIcon, |
|
|
|