From 1d48e617dfb041ee0d6df00629bbbe14345bfe77 Mon Sep 17 00:00:00 2001 From: dankito Date: Mon, 26 Aug 2024 18:33:24 +0200 Subject: [PATCH] Configured desktop window size --- .../src/desktopMain/kotlin/net/codinux/banking/ui/main.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/composeApp/src/desktopMain/kotlin/net/codinux/banking/ui/main.kt b/composeApp/src/desktopMain/kotlin/net/codinux/banking/ui/main.kt index 15797aa..0ef041a 100644 --- a/composeApp/src/desktopMain/kotlin/net/codinux/banking/ui/main.kt +++ b/composeApp/src/desktopMain/kotlin/net/codinux/banking/ui/main.kt @@ -1,12 +1,15 @@ package net.codinux.banking.ui -import androidx.compose.ui.window.Window -import androidx.compose.ui.window.application +import androidx.compose.ui.Alignment +import androidx.compose.ui.unit.DpSize +import androidx.compose.ui.unit.dp +import androidx.compose.ui.window.* fun main() = application { Window( onCloseRequest = ::exitApplication, title = "Bankmeister", + state = WindowState(position = WindowPosition(Alignment.Center), size = DpSize(900.dp, 800.dp)), ) { App() }