Bläddra i källkod

fix avatar voter border

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Andy Scherzinger 3 år sedan
förälder
incheckning
0a3e0230c9

+ 3 - 3
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 = "…"
     }

+ 1 - 0
app/src/main/res/values-night/colors.xml

@@ -75,4 +75,5 @@
     <color name="grey_200">#818181</color>
 
     <color name="dialog_background">#353535</color>
+    <color name="vote_dialog_background">#424242</color>
 </resources>

+ 1 - 0
app/src/main/res/values/colors.xml

@@ -109,5 +109,6 @@
     <!-- this is just a helper for status icon background because getting the background color of a dialog is not
     possible?! don't use this to set the background of dialogs -->
     <color name="dialog_background">#FFFFFF</color>
+    <color name="vote_dialog_background">#FFFFFF</color>
 
 </resources>