Skip to content

Commit dc0f27f

Browse files
committed
feat: caption color
1 parent b42cd53 commit dc0f27f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

app/src/main/java/to/bitkit/ui/components/SuggestionCard.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ fun SuggestionCard(
3737
@DrawableRes icon: Int,
3838
onClose: (() -> Unit)? = null,
3939
size: Int = 152,
40+
captionColor: Color = Colors.White64,
4041
onClick: () -> Unit,
4142
) {
4243
Box(
@@ -85,7 +86,7 @@ fun SuggestionCard(
8586

8687
CaptionB(
8788
text = description,
88-
color = Colors.White,
89+
color = captionColor,
8990
)
9091
}
9192
}

app/src/main/java/to/bitkit/ui/screens/shop/ShopDiscoverScreen.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ fun ShopDiscoverScreen(
6464
title = stringResource(R.string.other__shop__discover__gift_cards__title),
6565
description = stringResource(R.string.other__shop__discover__gift_cards__description),
6666
icon = R.drawable.gift,
67+
captionColor = Colors.Gray1,
6768
size = 164,
6869
onClick = {
6970
navigateWebView("gift-cards")
@@ -75,6 +76,7 @@ fun ShopDiscoverScreen(
7576
title = stringResource(R.string.other__shop__discover__esims__title),
7677
description = stringResource(R.string.other__shop__discover__esims__description),
7778
icon = R.drawable.globe,
79+
captionColor = Colors.Gray1,
7880
size = 164,
7981
onClick = {
8082
navigateWebView("esims")
@@ -93,6 +95,7 @@ fun ShopDiscoverScreen(
9395
title = stringResource(R.string.other__shop__discover__refill__title),
9496
description = stringResource(R.string.other__shop__discover__refill__description),
9597
icon = R.drawable.phone,
98+
captionColor = Colors.Gray1,
9699
size = 164,
97100
onClick = {
98101
navigateWebView("refill")
@@ -105,6 +108,7 @@ fun ShopDiscoverScreen(
105108
description = stringResource(R.string.other__shop__discover__travel__description),
106109
icon = R.drawable.rocket,
107110
size = 164,
111+
captionColor = Colors.Gray1,
108112
onClick = {
109113
navigateWebView("buy/travel")
110114
}

0 commit comments

Comments
 (0)