From 8fb090e536f2d64b4e78cd17e39ecb54847fe9a6 Mon Sep 17 00:00:00 2001 From: Ash Date: Mon, 3 Jun 2024 18:31:04 +0800 Subject: [PATCH] fix(ui): feedicon text style (#726) --- app/src/main/java/me/ash/reader/ui/component/FeedIcon.kt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/me/ash/reader/ui/component/FeedIcon.kt b/app/src/main/java/me/ash/reader/ui/component/FeedIcon.kt index 52e162b..5e5c13b 100644 --- a/app/src/main/java/me/ash/reader/ui/component/FeedIcon.kt +++ b/app/src/main/java/me/ash/reader/ui/component/FeedIcon.kt @@ -76,9 +76,11 @@ private fun FontIcon(size: Dp, feedName: String) { ) { Text( text = feedName.ifEmpty { " " }.first().toString(), - fontWeight = FontWeight.Bold, - color = MaterialTheme.colorScheme.onPrimary, - fontSize = 10.sp, + style = MaterialTheme.typography.bodyMedium.merge( + color = MaterialTheme.colorScheme.onPrimary, + fontSize = 10.sp, + fontWeight = FontWeight.Bold, + ) ) } }