From 3283e5b4f6e6cdf2f7bafc5fcbe88c9c4cce9607 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Brey?= Date: Fri, 22 Jul 2022 16:51:38 +0200 Subject: [PATCH] ConversationItem: theme unread message bubbles MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Álvaro Brey --- .../talk/adapters/items/ConversationItem.java | 19 ++++--------------- .../nextcloud/talk/ui/theme/ViewThemeUtils.kt | 17 +++++++++++++++++ 2 files changed, 21 insertions(+), 15 deletions(-) diff --git a/app/src/main/java/com/nextcloud/talk/adapters/items/ConversationItem.java b/app/src/main/java/com/nextcloud/talk/adapters/items/ConversationItem.java index d6c7ff7ad..e9c172173 100644 --- a/app/src/main/java/com/nextcloud/talk/adapters/items/ConversationItem.java +++ b/app/src/main/java/com/nextcloud/talk/adapters/items/ConversationItem.java @@ -168,29 +168,18 @@ public class ConversationItem extends AbstractFlexibleItem + chip.chipBackgroundColor = ColorStateList.valueOf(color) + chip.setTextColor(theme.colorText) + } + } + + fun colorChipOutlined(chip: Chip, strokeWidth: Float) { + withElementColor(chip) { color -> + chip.chipBackgroundColor = ColorStateList.valueOf(Color.TRANSPARENT) + chip.chipStrokeWidth = strokeWidth + chip.chipStrokeColor = ColorStateList.valueOf(color) + chip.setTextColor(color) + } + } + companion object { private val THEMEABLE_PLACEHOLDER_IDS = listOf( R.drawable.ic_mimetype_package_x_generic,