From 0a3e0230c9fa0554b5babf25815f411d5815f6c8 Mon Sep 17 00:00:00 2001 From: Andy Scherzinger Date: Thu, 28 Jul 2022 23:15:18 +0200 Subject: [PATCH] fix avatar voter border Signed-off-by: Andy Scherzinger --- .../polls/adapters/PollResultVotersOverviewViewHolder.kt | 6 +++--- app/src/main/res/values-night/colors.xml | 1 + app/src/main/res/values/colors.xml | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/nextcloud/talk/polls/adapters/PollResultVotersOverviewViewHolder.kt b/app/src/main/java/com/nextcloud/talk/polls/adapters/PollResultVotersOverviewViewHolder.kt index c3805afe1..d071cc76b 100644 --- a/app/src/main/java/com/nextcloud/talk/polls/adapters/PollResultVotersOverviewViewHolder.kt +++ b/app/src/main/java/com/nextcloud/talk/polls/adapters/PollResultVotersOverviewViewHolder.kt @@ -72,10 +72,10 @@ class PollResultVotersOverviewViewHolder( roundingParams.roundAsCircle = true roundingParams.borderColor = ResourcesCompat.getColor( itemView.context.resources!!, - R.color.colorPrimary, + R.color.vote_dialog_background, null ) - roundingParams.borderWidth = 2.0f + roundingParams.borderWidth = DisplayUtils.convertDpToPixel(2.0f, itemView.context) avatar.hierarchy.roundingParams = roundingParams avatar.controller = getAvatarDraweeController(pollDetails) @@ -134,7 +134,7 @@ class PollResultVotersOverviewViewHolder( const val AVATAR_SIZE = 60 const val AVATAR_RADIUS = 5f const val MAX_AVATARS = 10 - const val AVATAR_OFFSET = AVATAR_SIZE - 10 + const val AVATAR_OFFSET = AVATAR_SIZE - 20 const val DOTS_OFFSET = 70 const val DOTS_TEXT = "…" } diff --git a/app/src/main/res/values-night/colors.xml b/app/src/main/res/values-night/colors.xml index 6c2a769c8..86f4044a5 100644 --- a/app/src/main/res/values-night/colors.xml +++ b/app/src/main/res/values-night/colors.xml @@ -75,4 +75,5 @@ #818181 #353535 + #424242 diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index 0d5bf97ad..2993412c9 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -109,5 +109,6 @@ #FFFFFF + #FFFFFF