Skip to content

Commit

Permalink
Desktop UI tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
jdamcd committed Jan 23, 2025
1 parent cf328f1 commit 6da68e9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ private fun Loading() {
private fun Data(state: ArrivalsState.Data, onClickRefresh: () -> Unit) {
Column(
modifier = Modifier
.padding(32.dp)
.padding(top = 44.dp, bottom = 16.dp, start = 32.dp, end = 32.dp)
.fillMaxWidth(),
verticalArrangement = Arrangement.spacedBy(32.dp)
) {
Expand All @@ -76,13 +76,14 @@ private fun Data(state: ArrivalsState.Data, onClickRefresh: () -> Unit) {
Row(
modifier = Modifier
.background(color = Footer)
.padding(start = 32.dp, end = 28.dp, bottom = 4.dp)
.padding(start = 32.dp, end = 28.dp)
.fillMaxWidth()
.height(70.dp),
horizontalArrangement = Arrangement.SpaceBetween,
verticalAlignment = Alignment.CenterVertically
) {
Text(
modifier = Modifier.padding(bottom = 4.dp),
text = state.result.station,
color = Text,
style = TextStyle(
Expand Down Expand Up @@ -149,7 +150,7 @@ fun LedText(string: String) {
color = LedYellow,
style = TextStyle(
fontFamily = LurFontFamily,
fontSize = 52.sp
fontSize = 56.sp
)
)
}
Expand All @@ -170,7 +171,7 @@ fun FlashingLedText(string: String) {
color = LedYellow.copy(alpha = alpha),
style = TextStyle(
fontFamily = LurFontFamily,
fontSize = 52.sp
fontSize = 56.sp
)
)
}
3 changes: 2 additions & 1 deletion desktop/src/main/kotlin/com/jdamcd/arrivals/desktop/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ fun main() = application {
Window(
onCloseRequest = ::exitApplication,
state = windowState,
title = "Arrivals"
title = "Arrivals",
undecorated = true
) {
ArrivalsView(state, viewModel::refresh)
}
Expand Down

0 comments on commit 6da68e9

Please sign in to comment.