From 17a8969d80c0753ac47821e286606594e1e6454f Mon Sep 17 00:00:00 2001 From: SpiritCroc Date: Thu, 23 Dec 2021 15:26:14 +0100 Subject: [PATCH] [merge] Fix some poll colors + some more previously missed Change-Id: I346fab778b9c6c07bcf5fd1f3c753ccfe717aeea --- .../timeline/edithistory/ViewEditHistoryEpoxyController.kt | 2 +- .../app/features/poll/create/CreatePollController.kt | 2 +- vector/src/main/res/drawable/ic_list_item_bullet.xml | 7 ++++--- vector/src/main/res/drawable/ic_poll_winner.xml | 5 +++-- .../src/main/res/drawable/ic_shield_trusted_no_border.xml | 2 +- 5 files changed, 10 insertions(+), 8 deletions(-) diff --git a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/edithistory/ViewEditHistoryEpoxyController.kt b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/edithistory/ViewEditHistoryEpoxyController.kt index ed9f831018..45658f9449 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/edithistory/ViewEditHistoryEpoxyController.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/edithistory/ViewEditHistoryEpoxyController.kt @@ -119,7 +119,7 @@ class ViewEditHistoryEpoxyController @Inject constructor( diff_match_patch.Operation.INSERT -> { span { text = it.text - textColor = colorProvider.getColor(R.color.palette_element_green) + textColor = colorProvider.getColorFromAttribute(R.attr.vctr_encrypting_message_text_color) } } else -> { diff --git a/vector/src/main/java/im/vector/app/features/poll/create/CreatePollController.kt b/vector/src/main/java/im/vector/app/features/poll/create/CreatePollController.kt index 94a3d0c7d3..18fc251be9 100644 --- a/vector/src/main/java/im/vector/app/features/poll/create/CreatePollController.kt +++ b/vector/src/main/java/im/vector/app/features/poll/create/CreatePollController.kt @@ -94,7 +94,7 @@ class CreatePollController @Inject constructor( genericButtonItem { id("add_option") text(host.stringProvider.getString(R.string.create_poll_add_option)) - textColor(host.colorProvider.getColor(R.color.palette_element_green)) + textColor(host.colorProvider.getColorFromAttribute(R.attr.colorAccent)) gravity(Gravity.START) bold(true) buttonClickAction { diff --git a/vector/src/main/res/drawable/ic_list_item_bullet.xml b/vector/src/main/res/drawable/ic_list_item_bullet.xml index b4f13479f7..6513f6d250 100644 --- a/vector/src/main/res/drawable/ic_list_item_bullet.xml +++ b/vector/src/main/res/drawable/ic_list_item_bullet.xml @@ -2,19 +2,20 @@ android:width="24dp" android:height="24dp" android:viewportWidth="24" - android:viewportHeight="24"> + android:viewportHeight="24" + android:tint="?colorAccent"> diff --git a/vector/src/main/res/drawable/ic_poll_winner.xml b/vector/src/main/res/drawable/ic_poll_winner.xml index 71bc7ee5b6..c6b80f32d4 100644 --- a/vector/src/main/res/drawable/ic_poll_winner.xml +++ b/vector/src/main/res/drawable/ic_poll_winner.xml @@ -2,8 +2,9 @@ android:width="16dp" android:height="16dp" android:viewportWidth="16" - android:viewportHeight="16"> + android:viewportHeight="16" + android:tint="?colorAccent"> + android:fillColor="#8bc34a"/> diff --git a/vector/src/main/res/drawable/ic_shield_trusted_no_border.xml b/vector/src/main/res/drawable/ic_shield_trusted_no_border.xml index 2266c23548..78e06fa511 100644 --- a/vector/src/main/res/drawable/ic_shield_trusted_no_border.xml +++ b/vector/src/main/res/drawable/ic_shield_trusted_no_border.xml @@ -5,7 +5,7 @@ android:viewportHeight="24"> + android:fillColor="#8bc34a"/>