Skip to content

Commit

Permalink
feat: 程序窗口默认居中
Browse files Browse the repository at this point in the history
  • Loading branch information
jixiaoyong committed Apr 2, 2024
1 parent 40f8fa7 commit 90624bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/kotlin/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import androidx.compose.ui.awt.ComposeWindow
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.unit.dp
import androidx.compose.ui.window.Window
import androidx.compose.ui.window.WindowPosition
import androidx.compose.ui.window.application
import androidx.compose.ui.window.rememberWindowState
import cafe.adriel.lyricist.Lyricist
Expand All @@ -38,7 +39,7 @@ val LocalLyricist = compositionLocalOf<Lyricist<Strings>> { error("No SettingsTo

fun main() =
application {
val windowState = rememberWindowState(height = 650.dp)
val windowState = rememberWindowState(height = 650.dp, position = WindowPosition(Alignment.Center))
Window(
onCloseRequest = ::exitApplication,
title = "APK Signer",
Expand Down

0 comments on commit 90624bd

Please sign in to comment.