Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Monospace download digit for less jitter

laurenspriem780d2388d56d
diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatMessages.kt b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatMessages.kt
index a07840f6ed..73b20d5d8c 100644
--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatMessages.kt
+++ b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatMessages.kt
@@ -418,7 +418,7 @@ private fun DownloadOnboarding(
}
Text(
text = statusText ?: "Downloading...",
- style = EnsuTypography.body,
+ style = EnsuTypography.body.copy(fontFeatureSettings = "tnum"),
color = EnsuColor.textMuted(),
textAlign = TextAlign.Center
)
diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatOverlays.kt b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatOverlays.kt
index f72dd8e753..ae4a7d5567 100644
--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatOverlays.kt
+++ b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatOverlays.kt
@@ -132,7 +132,11 @@ internal fun DownloadToastOverlay(
)
Spacer(modifier = Modifier.height(EnsuSpacing.sm.dp))
Row(verticalAlignment = Alignment.CenterVertically) {
- Text(text = statusText, style = EnsuTypography.small, color = EnsuColor.textMuted())
+ Text(
+ text = statusText,
+ style = EnsuTypography.small.copy(fontFeatureSettings = "tnum"),
+ color = EnsuColor.textMuted()
+ )
Spacer(modifier = Modifier.weight(1f))
Text(text = "$clamped%", style = EnsuTypography.mini, color = EnsuColor.textMuted())
}
diff --git a/mobile/native/darwin/Apps/Ensu/Ensu/Chat/Components/ChatViewComponents.swift b/mobile/native/darwin/Apps/Ensu/Ensu/Chat/Components/ChatViewComponents.swift
index daae4fff84..4d562d8ca7 100644
--- a/mobile/native/darwin/Apps/Ensu/Ensu/Chat/Components/ChatViewComponents.swift
+++ b/mobile/native/darwin/Apps/Ensu/Ensu/Chat/Components/ChatViewComponents.swift
@@ -34,6 +34,7 @@ struct DownloadOnboardingView: View {
Text(statusLine)
.font(EnsuTypography.body)
+ .monospacedDigit()
.foregroundStyle(EnsuColor.textMuted)
.multilineTextAlignment(.center)
diff --git a/mobile/native/darwin/Apps/Ensu/Ensu/Chat/DownloadToastView.swift b/mobile/native/darwin/Apps/Ensu/Ensu/Chat/DownloadToastView.swift
index 3c5eb9c2c5..b7ac70a73c 100644
--- a/mobile/native/darwin/Apps/Ensu/Ensu/Chat/DownloadToastView.swift
+++ b/mobile/native/darwin/Apps/Ensu/Ensu/Chat/DownloadToastView.swift
@@ -101,6 +101,7 @@ struct DownloadToastView: View {
HStack {
Text(state.status)
.font(EnsuFont.message(size: 12, weight: .regular))
+ .monospacedDigit()
.foregroundStyle(hasError ? EnsuColor.error : EnsuColor.textMuted)
Spacer()