From 84617f376c376a2a8400d7a8f67d332c98340be7 Mon Sep 17 00:00:00 2001 From: Severiano Jaramillo Date: Tue, 31 Dec 2019 14:18:41 -0600 Subject: [PATCH] Improve LTM's lightning bolt in Home screen. - Changed the color of the lightning bolt icon for LTM accounts, so that it is black in day mode and white in night mode. - Increased the size of the lightning bolt icon to match the letters size and added a bit more separation between them. --- .../bitsybitshareswallet/fragments/HomeFragment.kt | 6 +++--- app/src/main/res/drawable/ic_ltm_account.xml | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/cy/agorise/bitsybitshareswallet/fragments/HomeFragment.kt b/app/src/main/java/cy/agorise/bitsybitshareswallet/fragments/HomeFragment.kt index af4d3d5..e43d4fa 100644 --- a/app/src/main/java/cy/agorise/bitsybitshareswallet/fragments/HomeFragment.kt +++ b/app/src/main/java/cy/agorise/bitsybitshareswallet/fragments/HomeFragment.kt @@ -86,11 +86,11 @@ class HomeFragment : Fragment() { tvAccountName.text = userAccount.name if (userAccount.isLtm) { // Add the lightning bolt to the start of the account name if it is LTM - tvAccountName.setCompoundDrawablesRelativeWithIntrinsicBounds( - resources.getDrawable(R.drawable.ic_ltm_account, null), null, null, null + tvAccountName.setCompoundDrawablesWithIntrinsicBounds( + R.drawable.ic_ltm_account, 0, 0, 0 ) // Add some padding so that the lightning bolt icon is not too close to the account name text - tvAccountName.compoundDrawablePadding = 4 + tvAccountName.compoundDrawablePadding = 12 } } }) diff --git a/app/src/main/res/drawable/ic_ltm_account.xml b/app/src/main/res/drawable/ic_ltm_account.xml index f633181..149bc92 100644 --- a/app/src/main/res/drawable/ic_ltm_account.xml +++ b/app/src/main/res/drawable/ic_ltm_account.xml @@ -1,10 +1,10 @@ + android:width="12dp" + android:height="24dp" + android:viewportWidth="12.0" + android:viewportHeight="24.0"> \ No newline at end of file