Skip to content

Commit 6da68e9

Browse files
committed
Desktop UI tweaks
1 parent cf328f1 commit 6da68e9

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

desktop/src/main/kotlin/com/jdamcd/arrivals/desktop/ArrivalsView.kt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ private fun Loading() {
6565
private fun Data(state: ArrivalsState.Data, onClickRefresh: () -> Unit) {
6666
Column(
6767
modifier = Modifier
68-
.padding(32.dp)
68+
.padding(top = 44.dp, bottom = 16.dp, start = 32.dp, end = 32.dp)
6969
.fillMaxWidth(),
7070
verticalArrangement = Arrangement.spacedBy(32.dp)
7171
) {
@@ -76,13 +76,14 @@ private fun Data(state: ArrivalsState.Data, onClickRefresh: () -> Unit) {
7676
Row(
7777
modifier = Modifier
7878
.background(color = Footer)
79-
.padding(start = 32.dp, end = 28.dp, bottom = 4.dp)
79+
.padding(start = 32.dp, end = 28.dp)
8080
.fillMaxWidth()
8181
.height(70.dp),
8282
horizontalArrangement = Arrangement.SpaceBetween,
8383
verticalAlignment = Alignment.CenterVertically
8484
) {
8585
Text(
86+
modifier = Modifier.padding(bottom = 4.dp),
8687
text = state.result.station,
8788
color = Text,
8889
style = TextStyle(
@@ -149,7 +150,7 @@ fun LedText(string: String) {
149150
color = LedYellow,
150151
style = TextStyle(
151152
fontFamily = LurFontFamily,
152-
fontSize = 52.sp
153+
fontSize = 56.sp
153154
)
154155
)
155156
}
@@ -170,7 +171,7 @@ fun FlashingLedText(string: String) {
170171
color = LedYellow.copy(alpha = alpha),
171172
style = TextStyle(
172173
fontFamily = LurFontFamily,
173-
fontSize = 52.sp
174+
fontSize = 56.sp
174175
)
175176
)
176177
}

desktop/src/main/kotlin/com/jdamcd/arrivals/desktop/Main.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ fun main() = application {
2626
Window(
2727
onCloseRequest = ::exitApplication,
2828
state = windowState,
29-
title = "Arrivals"
29+
title = "Arrivals",
30+
undecorated = true
3031
) {
3132
ArrivalsView(state, viewModel::refresh)
3233
}

0 commit comments

Comments
 (0)