From ae20e58e4a26fa647a88d7a49d9140fec7cd8266 Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Mon, 7 Mar 2022 13:01:58 +0000 Subject: [PATCH] replacing the ftue icons with only the foreground asset to allow for tinting - making use of the generic circle shape the background, this allows the foreground and background layers to be tintable separately --- .../src/main/res/drawable/ic_celebration.xml | 12 ++++------ .../main/res/drawable/ic_celebration_bg.xml | 22 +++++++++++++++++++ vector/src/main/res/drawable/ic_user_fg.xml | 10 +++++++++ .../layout/fragment_ftue_account_created.xml | 8 ++++--- .../res/layout/fragment_ftue_display_name.xml | 8 ++++--- ...fragment_ftue_personalization_complete.xml | 5 ++++- .../layout/fragment_ftue_profile_picture.xml | 4 ++-- 7 files changed, 52 insertions(+), 17 deletions(-) create mode 100644 vector/src/main/res/drawable/ic_celebration_bg.xml create mode 100644 vector/src/main/res/drawable/ic_user_fg.xml diff --git a/vector/src/main/res/drawable/ic_celebration.xml b/vector/src/main/res/drawable/ic_celebration.xml index 3868a60a60a..bfe05cad99d 100644 --- a/vector/src/main/res/drawable/ic_celebration.xml +++ b/vector/src/main/res/drawable/ic_celebration.xml @@ -3,20 +3,16 @@ android:height="70dp" android:viewportWidth="70" android:viewportHeight="70"> - + android:fillColor="#FF0000" + android:strokeColor="#FF0000"/> + android:fillColor="#FF0000" + android:strokeColor="#FF0000"/> diff --git a/vector/src/main/res/drawable/ic_celebration_bg.xml b/vector/src/main/res/drawable/ic_celebration_bg.xml new file mode 100644 index 00000000000..3868a60a60a --- /dev/null +++ b/vector/src/main/res/drawable/ic_celebration_bg.xml @@ -0,0 +1,22 @@ + + + + + diff --git a/vector/src/main/res/drawable/ic_user_fg.xml b/vector/src/main/res/drawable/ic_user_fg.xml new file mode 100644 index 00000000000..a4893861d88 --- /dev/null +++ b/vector/src/main/res/drawable/ic_user_fg.xml @@ -0,0 +1,10 @@ + + + diff --git a/vector/src/main/res/layout/fragment_ftue_account_created.xml b/vector/src/main/res/layout/fragment_ftue_account_created.xml index 89e94804afe..5b8dddba22a 100644 --- a/vector/src/main/res/layout/fragment_ftue_account_created.xml +++ b/vector/src/main/res/layout/fragment_ftue_account_created.xml @@ -40,14 +40,16 @@ android:layout_width="wrap_content" android:layout_height="0dp" android:adjustViewBounds="true" + android:background="@drawable/circle" + android:backgroundTint="@color/element_background_light" android:importantForAccessibility="no" - android:src="@drawable/ic_user_round" + android:src="@drawable/ic_user_fg" app:layout_constraintBottom_toTopOf="@id/accountCreatedSpace2" app:layout_constraintEnd_toEndOf="parent" - app:layout_constraintHeight_percent="0.15" + app:layout_constraintHeight_percent="0.12" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/accountCreatedSpace1" - app:tint="@color/element_background_light" /> + app:tint="?colorSecondary" /> + app:tint="@color/palette_white" /> + app:layout_constraintTop_toBottomOf="@id/personalizationCompleteSpace1" + app:tint="@color/palette_white" />