From 67e01af5ef9707ba3398fd75411b0d3d70684ff2 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Mon, 8 Apr 2024 10:04:34 +0200 Subject: [PATCH] flip sent/received bubble colors --- .../ui/adapter/MessageAdapter.java | 10 +-- src/main/res/layout/fragment_conversation.xml | 4 +- src/quicksy/res/values/colors-themed.xml | 80 +++++++++---------- 3 files changed, 47 insertions(+), 47 deletions(-) diff --git a/src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java b/src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java index 38b261c37..38a78df68 100644 --- a/src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java +++ b/src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java @@ -657,12 +657,12 @@ public class MessageAdapter extends ArrayAdapter { final BubbleColor bubbleColor; if (type == RECEIVED) { if (isInValidSession) { - bubbleColor = colorfulBackground ? BubbleColor.TERTIARY : BubbleColor.SURFACE; + bubbleColor = colorfulBackground ? BubbleColor.SECONDARY : BubbleColor.SURFACE; } else { bubbleColor = BubbleColor.WARNING; } } else { - bubbleColor = colorfulBackground ? BubbleColor.SECONDARY : BubbleColor.SURFACE; + bubbleColor = colorfulBackground ? BubbleColor.TERTIARY : BubbleColor.SURFACE; } if (type == DATE_SEPARATOR) { @@ -701,9 +701,9 @@ public class MessageAdapter extends ArrayAdapter { } } if (colorfulBackground) { - setBackgroundTint(viewHolder.message_box,BubbleColor.TERTIARY); - setTextColor(viewHolder.status_message, BubbleColor.TERTIARY); - setImageTint(viewHolder.indicatorReceived, BubbleColor.TERTIARY); + setBackgroundTint(viewHolder.message_box,BubbleColor.SECONDARY); + setTextColor(viewHolder.status_message, BubbleColor.SECONDARY); + setImageTint(viewHolder.indicatorReceived, BubbleColor.SECONDARY); } else { setBackgroundTint(viewHolder.message_box,BubbleColor.SURFACE); setTextColor(viewHolder.status_message, BubbleColor.SURFACE); diff --git a/src/main/res/layout/fragment_conversation.xml b/src/main/res/layout/fragment_conversation.xml index f12ec5911..7cd36dbdc 100644 --- a/src/main/res/layout/fragment_conversation.xml +++ b/src/main/res/layout/fragment_conversation.xml @@ -62,7 +62,7 @@ android:layout_centerVertical="true" android:layout_toStartOf="@+id/textSendButton" android:background="@drawable/background_message_bubble" - android:backgroundTint="?colorSecondaryContainer" + android:backgroundTint="?colorTertiaryContainer" android:orientation="vertical" android:paddingHorizontal="16dp" android:paddingVertical="8dp"> @@ -74,7 +74,7 @@ android:layout_marginBottom="8sp" android:maxLines="1" android:textAppearance="?textAppearanceBodySmall" - android:textColor="?colorOnSecondaryContainer" + android:textColor="?colorOnTertiaryContainer" android:visibility="visible" tools:text="@string/private_message_to" /> diff --git a/src/quicksy/res/values/colors-themed.xml b/src/quicksy/res/values/colors-themed.xml index 60c985a6f..ad7f95c5c 100644 --- a/src/quicksy/res/values/colors-themed.xml +++ b/src/quicksy/res/values/colors-themed.xml @@ -1,64 +1,64 @@ - #004D40 - #006B5A + #00796B + #006B5E #FFFFFF - #7AF8DB - #00201A - #4B635C + #76F8E2 + #00201B + #4A635E #FFFFFF - #CDE8DF - #06201A - #984718 + #CDE8E1 + #06201B + #446179 #FFFFFF - #FFDBCC - #351000 + #CAE6FF + #001E30 #BA1A1A #FFDAD6 #FFFFFF #410002 - #FAFDFA + #FAFDFB #191C1B - #FAFDFA + #FAFDFB #191C1B - #DBE5E0 - #3F4945 - #6F7975 + #DAE5E1 + #3F4946 + #6F7976 #EFF1EF - #2E3130 - #5BDBBF + #2D3130 + #55DBC6 #000000 - #006B5A - #BFC9C4 + #006B5E + #BEC9C5 #000000 - #5BDBBF - #00382E - #005143 - #7AF8DB - #B1CCC3 - #1D352F - #334B45 - #CDE8DF - #FFB693 - #562000 - #7A3001 - #FFDBCC + #55DBC6 + #003730 + #005047 + #76F8E2 + #B1CCC5 + #1C3530 + #334B46 + #CDE8E1 + #ACCAE5 + #133348 + #2C4A60 + #CAE6FF #FFB4AB #93000A #690005 #FFDAD6 #191C1B - #E1E3E0 + #E0E3E1 #191C1B - #E1E3E0 - #3F4945 - #BFC9C4 - #89938F + #E0E3E1 + #3F4946 + #BEC9C5 + #899390 #191C1B - #E1E3E0 - #006B5A + #E0E3E1 + #006B5E #000000 - #5BDBBF - #3F4945 + #55DBC6 + #3F4946 #000000