Fix some rendering issues
This commit is contained in:
@@ -20,6 +20,7 @@ import androidx.compose.ui.window.WindowState
|
||||
import ch.dissem.yaep.ui.common.theme.AppTheme
|
||||
import org.jetbrains.compose.resources.painterResource
|
||||
import yaep.commonui.generated.resources.Res
|
||||
import yaep.commonui.generated.resources.lightbulb
|
||||
import yaep.commonui.generated.resources.moon
|
||||
import yaep.commonui.generated.resources.sun
|
||||
import yaep.commonui.generated.resources.window_close
|
||||
@@ -55,7 +56,7 @@ fun AppBar(
|
||||
) {
|
||||
TopAppBar(
|
||||
navigationIcon = {
|
||||
// TODO Icon(painterResource(Res.drawable.heart), null)
|
||||
Icon(painterResource(Res.drawable.lightbulb), null)
|
||||
},
|
||||
title = { Text(text = "Yet Another Einstein Puzzle") },
|
||||
actions = {
|
||||
|
||||
@@ -26,11 +26,15 @@ fun main() = application {
|
||||
style = FontStyle.Normal
|
||||
)
|
||||
)
|
||||
val windowState = rememberWindowState(
|
||||
placement = WindowPlacement.Floating
|
||||
)
|
||||
|
||||
Window(
|
||||
onCloseRequest = ::exitApplication,
|
||||
undecorated = true,
|
||||
title = "YAEP",
|
||||
state = windowState,
|
||||
icon = painterResource(Res.drawable.moon)
|
||||
) {
|
||||
var useDarkMode by remember { mutableStateOf(true) }
|
||||
@@ -41,9 +45,7 @@ fun main() = application {
|
||||
useDarkMode = useDarkMode,
|
||||
setDarkMode = { useDarkMode = it },
|
||||
onCloseRequest = ::exitApplication,
|
||||
windowState = rememberWindowState(
|
||||
placement = WindowPlacement.Floating
|
||||
)
|
||||
windowState = windowState
|
||||
)
|
||||
}
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user