From 1dd021598c9f6ba89b8563d36d2bd43e3b8278b1 Mon Sep 17 00:00:00 2001 From: joeyschmoe Date: Thu, 3 Oct 2024 13:15:21 -0700 Subject: [PATCH] Change design of button and make button stay at bottom of screen --- .../mobilesdkexample/wallet/WalletHomeView.kt | 10 +++++----- .../main/res/drawable-hdpi/scan_qr_code_white.png | Bin 0 -> 892 bytes 2 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 example/src/main/res/drawable-hdpi/scan_qr_code_white.png diff --git a/example/src/main/java/com/spruceid/mobilesdkexample/wallet/WalletHomeView.kt b/example/src/main/java/com/spruceid/mobilesdkexample/wallet/WalletHomeView.kt index 11e37b0..b391a98 100644 --- a/example/src/main/java/com/spruceid/mobilesdkexample/wallet/WalletHomeView.kt +++ b/example/src/main/java/com/spruceid/mobilesdkexample/wallet/WalletHomeView.kt @@ -102,8 +102,8 @@ fun WalletHomeBody( val rawCredentials by rawCredentialsViewModel.rawCredentials.collectAsState() - if(!rawCredentials.isNotEmpty()) { - Column { + if(rawCredentials.isNotEmpty()) { + Box(modifier = Modifier.fillMaxSize()) { LazyColumn( Modifier .fillMaxWidth() @@ -137,7 +137,7 @@ fun WalletHomeBody( }, modifier = Modifier.fillMaxWidth(), colors = ButtonDefaults.buttonColors( - containerColor = Color.Blue, + containerColor = Color(0xFF488CF4), contentColor = Color.White, ) ) { @@ -146,9 +146,9 @@ fun WalletHomeBody( modifier = Modifier.padding(8.dp) ) { Icon( - painter = painterResource(id = R.drawable.scan_qr_code), + painter = painterResource(id = R.drawable.scan_qr_code_white), contentDescription = "QR Code Icon", - tint = Color.White, + tint = Color(0xFFFFFFFF), modifier = Modifier.padding(end = 10.dp) ) Text( diff --git a/example/src/main/res/drawable-hdpi/scan_qr_code_white.png b/example/src/main/res/drawable-hdpi/scan_qr_code_white.png new file mode 100644 index 0000000000000000000000000000000000000000..7aaf653c73c9e1ecc99adf075f47612c2dcd01dd GIT binary patch literal 892 zcmV-?1B3jDP)Px&Hc3Q5RCr$PTuXMO{mD1nvUg<5*K$$3YVfst6{> zb)Fz12YC-3BH{@5dj&ufed)oVR3z;H1?H1uVqu%R;XK5kYR~h?)gB|_4}n2^bO_nS zWAhx^!><0>u0hNomV;GIOm&&OXd>cs&!6B8=a|?LBB~n@nS6H>W3*pJ+cgOS2O$j^ z)EXe3pLczH4iWKEqmQ;8A(*_8G?3@1PMB#sCYa4?3@QLIfI-* z>oX{H^Va|%Cct-_#g_o#@nKG&$Zr3yvFRKZ9Haup9FvOMv^KGlHOvVV=Z~OZ)*)Q(+f4)G3U+;5v$*gL8>04 z=e1AFfUN>ldvT~`6y3x$?~|zR*u0x>szDBr;hrBoK*BMib@76xL2*Wr6vs08ZE#{= z5+Xkd1;%ipxOhQ0MrZ|8O--z|7wb`BwrT-Y0wB?2#`TA(IB4%`6t}>jRcjPm92LSb z)-thfWxyQ(TE0fH^-J^|uLpxn6YKdxt;cqN3`BbX