Skip to content

Commit

Permalink
fix: increase android speed limit sign font size (#416)
Browse files Browse the repository at this point in the history
* fix: increase android speed limit sign font size

* fix: increase android speed limit sign font size
  • Loading branch information
Archdoog authored Jan 7, 2025
1 parent 772d778 commit ee7a121
Show file tree
Hide file tree
Showing 20 changed files with 16 additions and 10 deletions.
1 change: 1 addition & 0 deletions android/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
*.iml
.gradle
.kotlin
/local.properties
/.idea/caches
/.idea/libraries
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ fun USStyleSpeedLimitView(
Column(
modifier = Modifier.fillMaxSize(),
horizontalAlignment = Alignment.CenterHorizontally,
verticalArrangement = Arrangement.Center) {
verticalArrangement = Arrangement.Top) {
Text(
text = stringResource(R.string.speed).uppercase(),
fontSize = 9.sp,
Expand All @@ -79,12 +79,17 @@ fun USStyleSpeedLimitView(
fontWeight = FontWeight.Bold,
color = Color.Black)

Spacer(modifier = Modifier.height(6.dp))
Spacer(modifier = Modifier.weight(1f))

Text(
text = formattedSpeed,
fontSize = if (formattedSpeed.length > 3) 18.sp else 24.sp,
lineHeight = if (formattedSpeed.length > 3) 20.sp else 26.sp,
fontSize =
when {
(formattedSpeed.length < 3) -> 30.sp
(formattedSpeed.length == 3) -> 24.sp
else -> 18.sp
},
lineHeight = if (formattedSpeed.length > 3) 26.sp else 32.sp,
fontWeight = FontWeight.ExtraBold,
color = Color.Black,
textAlign = TextAlign.Center)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,16 @@ fun ViennaConventionStyleSpeedLimitView(
text = formattedSpeed,
fontSize =
when {
formattedSpeed.length > 3 -> 14.sp
formattedSpeed.length > 2 -> 18.sp
else -> 24.sp
formattedSpeed.length > 3 -> 18.sp
formattedSpeed.length > 2 -> 24.sp
else -> 29.sp
},
fontWeight = FontWeight.ExtraBold,
lineHeight =
when {
formattedSpeed.length > 3 -> 16.sp
formattedSpeed.length > 2 -> 20.sp
else -> 26.sp
formattedSpeed.length > 3 -> 20.sp
formattedSpeed.length > 2 -> 26.sp
else -> 30.sp
},
color = Color.Black,
textAlign = TextAlign.Center)
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ee7a121

Please sign in to comment.