Skip to content

Commit 74a1264

Browse files
committed
fix: add icons
1 parent 2e7e742 commit 74a1264

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed

app/src/main/java/to/bitkit/ui/screens/wallets/receive/ReceiveQrScreen.kt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import androidx.compose.foundation.layout.height
1010
import androidx.compose.foundation.layout.imePadding
1111
import androidx.compose.foundation.layout.padding
1212
import androidx.compose.foundation.layout.size
13+
import androidx.compose.foundation.layout.width
1314
import androidx.compose.foundation.pager.rememberPagerState
1415
import androidx.compose.material3.Card
1516
import androidx.compose.material3.CardDefaults
@@ -395,7 +396,14 @@ private fun CopyAddressCard(
395396
.fillMaxWidth()
396397
.padding(24.dp)
397398
) {
398-
Caption13Up(text = title, color = Colors.White64)
399+
Row {
400+
Caption13Up(text = title, color = Colors.White64)
401+
402+
Spacer(modifier = Modifier.width(3.dp))
403+
404+
val iconRes = if (type == CopyAddressType.ONCHAIN) R.drawable.ic_bitcoin else R.drawable.ic_lightning_alt
405+
Icon(painter = painterResource(iconRes), contentDescription = null, tint = Colors.White64)
406+
}
399407
Spacer(modifier = Modifier.height(16.dp))
400408
BodyS(text = address.truncate(32).uppercase())
401409
Spacer(modifier = Modifier.height(16.dp))
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:width="16dp"
3+
android:height="17dp"
4+
android:viewportWidth="16"
5+
android:viewportHeight="17">
6+
<path
7+
android:pathData="M13.05,7.128C13.27,5.657 12.15,4.866 10.618,4.339L11.115,2.346L9.902,2.044L9.418,3.984C9.099,3.905 8.772,3.83 8.446,3.755L8.933,1.802L7.721,1.5L7.224,3.492C6.96,3.432 6.701,3.373 6.449,3.31L6.45,3.304L4.778,2.886L4.455,4.182C4.455,4.182 5.355,4.388 5.336,4.401C5.827,4.524 5.916,4.849 5.901,5.106L5.335,7.377C5.369,7.385 5.413,7.397 5.461,7.417C5.421,7.407 5.378,7.396 5.333,7.385L4.54,10.565C4.48,10.715 4.327,10.939 3.984,10.853C3.996,10.871 3.102,10.633 3.102,10.633L2.5,12.022L4.078,12.415C4.372,12.489 4.66,12.566 4.943,12.638L4.442,14.654L5.653,14.956L6.15,12.962C6.482,13.052 6.803,13.135 7.117,13.213L6.622,15.198L7.835,15.5L8.337,13.488C10.406,13.88 11.961,13.722 12.616,11.851C13.143,10.345 12.59,9.476 11.501,8.909C12.294,8.726 12.891,8.205 13.05,7.128ZM10.279,11.015C9.904,12.521 7.368,11.707 6.545,11.502L7.211,8.832C8.033,9.037 10.67,9.444 10.279,11.015ZM10.653,7.107C10.312,8.477 8.201,7.781 7.516,7.61L8.12,5.188C8.804,5.359 11.01,5.677 10.653,7.107Z"
8+
android:fillColor="#ffffff"
9+
android:fillAlpha="0.64"/>
10+
</vector>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:width="16dp"
3+
android:height="16dp"
4+
android:viewportWidth="16"
5+
android:viewportHeight="16">
6+
<path
7+
android:pathData="M3.998,9.234H7.694L5.759,14.232C5.485,14.919 6.225,15.287 6.698,14.726L12.659,7.643C12.771,7.504 12.833,7.372 12.833,7.221C12.833,6.956 12.622,6.763 12.336,6.763H8.64L10.575,1.765C10.842,1.078 10.108,0.717 9.635,1.271L3.674,8.354C3.556,8.493 3.5,8.626 3.5,8.776C3.5,9.042 3.712,9.234 3.998,9.234Z"
8+
android:fillColor="#ffffff"
9+
android:fillAlpha="0.64"/>
10+
</vector>

0 commit comments

Comments
 (0)