@@ -174,6 +174,7 @@ fun ReceiveQrScreen(
174174 uri = currentInvoice,
175175 qrLogoPainter = painterResource(qrLogoRes),
176176 onClickEditInvoice = onClickEditInvoice,
177+ tab = selectedTab,
177178 modifier = Modifier .fillMaxWidth()
178179 )
179180 }
@@ -204,6 +205,7 @@ private fun ReceiveQrView(
204205 qrLogoPainter : Painter ,
205206 onClickEditInvoice : () -> Unit ,
206207 modifier : Modifier = Modifier ,
208+ tab : ReceiveTab ,
207209) {
208210 val context = LocalContext .current
209211 val qrButtonTooltipState = rememberTooltipState()
@@ -238,7 +240,11 @@ private fun ReceiveQrView(
238240 Icon (
239241 painter = painterResource(R .drawable.ic_pencil_simple),
240242 contentDescription = null ,
241- tint = Colors .Brand ,
243+ tint = when (tab) {
244+ ReceiveTab .SAVINGS -> Colors .Brand
245+ ReceiveTab .AUTO -> Colors .Brand
246+ ReceiveTab .SPENDING -> Colors .Purple
247+ },
242248 modifier = Modifier .size(18 .dp)
243249 )
244250 },
@@ -261,7 +267,11 @@ private fun ReceiveQrView(
261267 Icon (
262268 painter = painterResource(R .drawable.ic_copy),
263269 contentDescription = null ,
264- tint = Colors .Brand ,
270+ tint = when (tab) {
271+ ReceiveTab .SAVINGS -> Colors .Brand
272+ ReceiveTab .AUTO -> Colors .Brand
273+ ReceiveTab .SPENDING -> Colors .Purple
274+ },
265275 modifier = Modifier .size(18 .dp)
266276 )
267277 },
@@ -282,7 +292,11 @@ private fun ReceiveQrView(
282292 Icon (
283293 painter = painterResource(R .drawable.ic_share),
284294 contentDescription = null ,
285- tint = Colors .Brand ,
295+ tint = when (tab) {
296+ ReceiveTab .SAVINGS -> Colors .Brand
297+ ReceiveTab .AUTO -> Colors .Brand
298+ ReceiveTab .SPENDING -> Colors .Purple
299+ },
286300 modifier = Modifier .size(18 .dp)
287301 )
288302 },
0 commit comments