Skip to content

Commit

Permalink
Add: Icons
Browse files Browse the repository at this point in the history
  • Loading branch information
naotiki committed May 24, 2023
1 parent 20c2648 commit 25214f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions client-app/src/main/kotlin/ControlWindow.kt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import kotlinx.datetime.*
import org.jetbrains.compose.animatedimage.Blank
import org.jetbrains.compose.resources.ExperimentalResourceApi
import org.jetbrains.compose.resources.painterResource
import org.jetbrains.exposed.sql.and
import org.jetbrains.kotlinx.kandy.dsl.invoke
import org.jetbrains.kotlinx.kandy.dsl.plot
Expand All @@ -40,11 +42,11 @@ import kotlin.time.DurationUnit
val startTime = Clock.System.now()
const val areaScale = 300

@OptIn(ExperimentalFoundationApi::class)
@OptIn(ExperimentalFoundationApi::class, ExperimentalResourceApi::class)
@Composable
fun ControlWindow(visible: Boolean = true, serverState: ServerState, onCloseRequest: () -> Unit, selectedTab: Int) {
val statisticsState = rememberStatisticsState(serverState)
Window(onCloseRequest = onCloseRequest, visible = visible) {
Window(onCloseRequest = onCloseRequest, visible = visible, icon = painterResource("SUCIcon.png")) {
Surface {
val screenSize = rememberScreenSize()

Expand Down
2 changes: 1 addition & 1 deletion client-app/src/main/kotlin/main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ fun main() = application {
var exitCount by remember { mutableStateOf(0) }
//Windowを表示
Window(
onCloseRequest ={exitCount=10},
onCloseRequest = {exitCount=10},
state = windowState,
focusable = false,
resizable = false,
Expand Down

0 comments on commit 25214f8

Please sign in to comment.