diff --git a/app/src/main/java/io/github/jan/kex/ui/screen/exam/ExamCreateScreen.kt b/app/src/main/java/io/github/jan/kex/ui/screen/exam/ExamCreateScreen.kt index 171df41..4f36fe4 100644 --- a/app/src/main/java/io/github/jan/kex/ui/screen/exam/ExamCreateScreen.kt +++ b/app/src/main/java/io/github/jan/kex/ui/screen/exam/ExamCreateScreen.kt @@ -72,7 +72,7 @@ fun ExamCreateScreen( val date = Instant.fromEpochMilliseconds(it).toLocalDateTime( TimeZone.currentSystemDefault() ) - "${date.dayOfMonth}.${date.monthNumber}.${date.year}" + "${if(date.dayOfMonth < 10) "0" + date.dayOfMonth else date.dayOfMonth}.${date.monthNumber}.${date.year}" } } var type by remember { diff --git a/app/src/main/java/io/github/jan/kex/ui/screen/exam/ExamScreen.kt b/app/src/main/java/io/github/jan/kex/ui/screen/exam/ExamScreen.kt index f768ae1..af39e59 100644 --- a/app/src/main/java/io/github/jan/kex/ui/screen/exam/ExamScreen.kt +++ b/app/src/main/java/io/github/jan/kex/ui/screen/exam/ExamScreen.kt @@ -31,7 +31,10 @@ import androidx.compose.runtime.remember import androidx.compose.runtime.setValue import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier +import androidx.compose.ui.geometry.Offset +import androidx.compose.ui.graphics.Shadow import androidx.compose.ui.res.stringResource +import androidx.compose.ui.text.TextStyle import androidx.compose.ui.unit.dp import androidx.lifecycle.compose.collectAsStateWithLifecycle import androidx.navigation.NavController @@ -170,7 +173,11 @@ fun ExamScreen( checked = showPastExams, onCheckedChange = { examVm.showPastExams.value = !showPastExams }) Spacer(modifier = Modifier.size(12.dp)) - Text(stringResource(R.string.past_exams), modifier = Modifier.weight(1f)) + Text( + stringResource(R.string.past_exams), + modifier = Modifier.weight(1f), + style = TextStyle(shadow = Shadow(MaterialTheme.colorScheme.inverseOnSurface, Offset(5.0f, 5.0f), 1f)) + ) ExtendedFloatingActionButton( onClick = { navController.navigate(NavigationTarget.Exams.Create.destinationFormat) }, text = { Text(stringResource(R.string.create)) }, diff --git a/gradle.properties b/gradle.properties index a348c9f..304dfdc 100644 --- a/gradle.properties +++ b/gradle.properties @@ -26,5 +26,5 @@ kotlin.experimental.tryK2=true android.lint.useK2Uast=true # App settings -app.versionName=0.1.1 -app.versionCode=7 +app.versionName=0.1.2 +app.versionCode=8