diff --git a/app/src/main/java/com/nickspatties/timeclock/ui/components/NothingHereText.kt b/app/src/main/java/com/nickspatties/timeclock/ui/components/NothingHereText.kt index ec720f5..e4568e3 100644 --- a/app/src/main/java/com/nickspatties/timeclock/ui/components/NothingHereText.kt +++ b/app/src/main/java/com/nickspatties/timeclock/ui/components/NothingHereText.kt @@ -7,33 +7,28 @@ import androidx.compose.runtime.Composable import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.res.stringResource +import androidx.compose.ui.text.style.TextAlign import androidx.compose.ui.unit.dp import androidx.compose.ui.unit.sp import com.nickspatties.timeclock.R @Composable -fun NothingHereText() { +fun NothingHereText( + text: String = stringResource(id = R.string.list_page_nothing_here) +) { Column( modifier = Modifier .fillMaxHeight() .fillMaxWidth() - .padding( - horizontal = 8.dp - ), + .padding(horizontal = 8.dp), horizontalAlignment = Alignment.CenterHorizontally, verticalArrangement = Arrangement.Center ) { - val size = 24.sp - val color = MaterialTheme.colors.onSurface.copy(alpha = 0.33f) Text( - text = stringResource(R.string.list_page_nothing_here), - fontSize = size, - color = color - ) - Text( - text = stringResource(R.string.list_page_fill_this_list), - fontSize = size, - color = color + text = text, + style = MaterialTheme.typography.h6, + color = MaterialTheme.colors.onSurface.copy(alpha = 0.33f), + textAlign = TextAlign.Center ) } } \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index deb2aec..9bbadcf 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -9,8 +9,7 @@ Task \"%s\" saved! What are you gonna do now? Right now, I\'m gonna be… - Looks like there\'s nothing here. - Record some events to fill this list! + Looks like there\'s nothing here… Record some events to fill this list! In progress… Start time End time