Skip to content

Commit a42dcd0

Browse files
Trying to fix weird startup error
1 parent 1b9443a commit a42dcd0

File tree

1 file changed

+26
-16
lines changed
  • composeApp/src/jvmMain/kotlin/ua/valeriishymchuk/lobmapeditor

1 file changed

+26
-16
lines changed

composeApp/src/jvmMain/kotlin/ua/valeriishymchuk/lobmapeditor/main.kt renamed to composeApp/src/jvmMain/kotlin/ua/valeriishymchuk/lobmapeditor/Main.kt

Lines changed: 26 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,9 @@ import org.jetbrains.jewel.window.DecoratedWindow
1818
import org.jetbrains.jewel.window.styling.DecoratedWindowStyle
1919
import org.jetbrains.jewel.window.styling.TitleBarStyle
2020
import org.kodein.di.DI
21-
import org.kodein.di.bindEagerSingleton
2221
import org.kodein.di.compose.withDI
2322
import org.kodein.di.instance
24-
import ua.valeriishymchuk.lobmapeditor.services.ErrorService
2523
import ua.valeriishymchuk.lobmapeditor.services.LifecycleService
26-
import ua.valeriishymchuk.lobmapeditor.services.ToastService
2724
import ua.valeriishymchuk.lobmapeditor.services.servicesModule
2825
import ua.valeriishymchuk.lobmapeditor.ui.App
2926
import ua.valeriishymchuk.lobmapeditor.ui.TitleBarView
@@ -71,19 +68,32 @@ fun main() {
7168
),
7269
) {
7370
Navigator(HomeScreen) {
74-
DecoratedWindow(
75-
onCloseRequest = { exitApplication() },
76-
title = "LOBMapEditor",
77-
style = DecoratedWindowStyle.dark(),
78-
content = {
79-
TitleBarView()
80-
Box(modifier = Modifier.background(
81-
JewelTheme.globalColors.panelBackground
82-
).fillMaxSize()) {
83-
App()
84-
}
85-
},
86-
)
71+
IntUiTheme(
72+
theme = JewelTheme.darkThemeDefinition(
73+
defaultTextStyle = textStyle,
74+
editorTextStyle = editorStyle
75+
),
76+
styling =
77+
ComponentStyling.default()
78+
.decoratedWindow(
79+
titleBarStyle = TitleBarStyle.dark()
80+
),
81+
) {
82+
DecoratedWindow(
83+
onCloseRequest = { exitApplication() },
84+
title = "LOBMapEditor",
85+
style = DecoratedWindowStyle.dark(),
86+
content = {
87+
TitleBarView()
88+
Box(modifier = Modifier.background(
89+
JewelTheme.globalColors.panelBackground
90+
).fillMaxSize()) {
91+
App()
92+
}
93+
},
94+
)
95+
}
96+
8797
}
8898
}
8999
}

0 commit comments

Comments
 (0)