From 0927b276574f49caa2a7017678d97bbb1c78ced2 Mon Sep 17 00:00:00 2001 From: Artem Chepurnoy Date: Fri, 1 Mar 2024 19:16:04 +0200 Subject: [PATCH] fix: Make Nav bar label text size 10sp to fit the Watchtower text #190 --- .../kotlin/com/artemchep/keyguard/feature/home/HomeScreen.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/src/commonMain/kotlin/com/artemchep/keyguard/feature/home/HomeScreen.kt b/common/src/commonMain/kotlin/com/artemchep/keyguard/feature/home/HomeScreen.kt index fc726603..b3014431 100644 --- a/common/src/commonMain/kotlin/com/artemchep/keyguard/feature/home/HomeScreen.kt +++ b/common/src/commonMain/kotlin/com/artemchep/keyguard/feature/home/HomeScreen.kt @@ -85,6 +85,7 @@ import androidx.compose.ui.platform.LocalDensity import androidx.compose.ui.text.style.TextAlign import androidx.compose.ui.unit.coerceAtLeast import androidx.compose.ui.unit.dp +import androidx.compose.ui.unit.sp import androidx.compose.ui.zIndex import com.artemchep.keyguard.common.model.DAccountStatus import com.artemchep.keyguard.common.usecase.GetAccountStatus @@ -399,7 +400,7 @@ fun HomeScreenContent( textAlign = TextAlign.Center, // Default style does not fit on devices with small // screens. - style = MaterialTheme.typography.labelSmall, + fontSize = 10.sp, ) } } else {