From fd52fdd042c8c1fb3a813476600db2fb168a4d4c Mon Sep 17 00:00:00 2001 From: Anton Chekulaev Date: Mon, 24 Aug 2020 13:34:34 +1000 Subject: [PATCH] User view is now compatible with light theme. --- res/drawable/ic_circle.xml | 14 ++++++++++---- res/drawable/ic_circle_check.xml | 18 +++++++++++++----- res/drawable/ic_edit_white_24dp.xml | 5 ----- res/drawable/ic_more_horiz_white.xml | 13 +++++++++---- res/layout-sw400dp/view_seed_reminder.xml | 2 +- res/layout/activity_create_closed_group.xml | 2 +- res/layout/activity_edit_closed_group.xml | 4 ++-- res/layout/activity_settings.xml | 16 ++++++++-------- res/layout/conversation_activity.xml | 4 ++-- res/layout/session_restore_banner.xml | 4 ++-- res/layout/view_seed_reminder.xml | 2 +- res/layout/view_user.xml | 15 ++++++++------- .../securesms/loki/views/UserView.kt | 2 +- 13 files changed, 58 insertions(+), 43 deletions(-) delete mode 100644 res/drawable/ic_edit_white_24dp.xml diff --git a/res/drawable/ic_circle.xml b/res/drawable/ic_circle.xml index c73285b7d2..b5b8615d22 100644 --- a/res/drawable/ic_circle.xml +++ b/res/drawable/ic_circle.xml @@ -1,6 +1,12 @@ - - + + android:strokeColor="@android:color/white" + android:strokeWidth="1"/> diff --git a/res/drawable/ic_circle_check.xml b/res/drawable/ic_circle_check.xml index a258b5c30c..e88b286a9d 100644 --- a/res/drawable/ic_circle_check.xml +++ b/res/drawable/ic_circle_check.xml @@ -1,7 +1,15 @@ - - + - + android:strokeColor="@android:color/white" + android:strokeWidth="1"/> + diff --git a/res/drawable/ic_edit_white_24dp.xml b/res/drawable/ic_edit_white_24dp.xml deleted file mode 100644 index 46462b5726..0000000000 --- a/res/drawable/ic_edit_white_24dp.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - diff --git a/res/drawable/ic_more_horiz_white.xml b/res/drawable/ic_more_horiz_white.xml index 8bb3fc306f..efb34a24a3 100644 --- a/res/drawable/ic_more_horiz_white.xml +++ b/res/drawable/ic_more_horiz_white.xml @@ -1,5 +1,10 @@ - - + + diff --git a/res/layout-sw400dp/view_seed_reminder.xml b/res/layout-sw400dp/view_seed_reminder.xml index c1b16634fe..e9bb3bbe81 100644 --- a/res/layout-sw400dp/view_seed_reminder.xml +++ b/res/layout-sw400dp/view_seed_reminder.xml @@ -71,6 +71,6 @@ + android:background="?android:dividerHorizontal" /> \ No newline at end of file diff --git a/res/layout/activity_create_closed_group.xml b/res/layout/activity_create_closed_group.xml index f8446309d1..4c773cc6ad 100644 --- a/res/layout/activity_create_closed_group.xml +++ b/res/layout/activity_create_closed_group.xml @@ -24,7 +24,7 @@ + android:background="?android:dividerHorizontal" /> + android:background="?android:dividerHorizontal" /> + android:background="?android:dividerHorizontal" /> + android:background="?android:dividerHorizontal" /> + android:background="?android:dividerHorizontal" /> + android:background="?android:dividerHorizontal" /> + android:background="?android:dividerHorizontal" /> + android:background="?android:dividerHorizontal" /> + android:background="?android:dividerHorizontal" /> + android:background="?android:dividerHorizontal" /> + android:background="?android:dividerHorizontal" /> + android:background="?android:dividerHorizontal" /> + android:background="?android:dividerHorizontal" /> diff --git a/res/layout/session_restore_banner.xml b/res/layout/session_restore_banner.xml index 30a6d99c96..4d402326e2 100644 --- a/res/layout/session_restore_banner.xml +++ b/res/layout/session_restore_banner.xml @@ -11,7 +11,7 @@ + android:background="?android:dividerHorizontal" /> + android:background="?android:dividerHorizontal" /> diff --git a/res/layout/view_seed_reminder.xml b/res/layout/view_seed_reminder.xml index 362e25b32c..02258d49b1 100644 --- a/res/layout/view_seed_reminder.xml +++ b/res/layout/view_seed_reminder.xml @@ -71,6 +71,6 @@ + android:background="?android:dividerHorizontal" /> \ No newline at end of file diff --git a/res/layout/view_user.xml b/res/layout/view_user.xml index 6d9aa37e09..f213e59972 100644 --- a/res/layout/view_user.xml +++ b/res/layout/view_user.xml @@ -1,6 +1,6 @@ - + android:layout_weight="1" + android:textColor="?android:textColorPrimary" + tools:text="Spiderman" /> + android:src="@drawable/ic_circle" + android:tint="?android:textColorPrimary"/> + android:background="?android:dividerHorizontal" /> \ No newline at end of file diff --git a/src/org/thoughtcrime/securesms/loki/views/UserView.kt b/src/org/thoughtcrime/securesms/loki/views/UserView.kt index 3305294a34..43cd12cf4c 100644 --- a/src/org/thoughtcrime/securesms/loki/views/UserView.kt +++ b/src/org/thoughtcrime/securesms/loki/views/UserView.kt @@ -66,7 +66,7 @@ class UserView : LinearLayout { profilePictureView.additionalPublicKey = null profilePictureView.isRSSFeed = false } - actionIndicatorImageView.setImageResource(R.drawable.ic_edit_white_24dp) + actionIndicatorImageView.setImageResource(R.drawable.ic_baseline_edit_24) profilePictureView.glide = glide profilePictureView.update() nameTextView.text = user.name ?: "Unknown Contact"