From 3c0773c6e71398a0e4de5440b009cfeedd758b85 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Mon, 31 Aug 2020 11:19:27 +0200 Subject: [PATCH] use darker accent color in light theme --- src/main/java/eu/siacs/conversations/utils/StylingHelper.java | 2 +- src/main/res/values/colors.xml | 2 ++ src/main/res/values/themes.xml | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/eu/siacs/conversations/utils/StylingHelper.java b/src/main/java/eu/siacs/conversations/utils/StylingHelper.java index c26a86ea4..4d4339a42 100644 --- a/src/main/java/eu/siacs/conversations/utils/StylingHelper.java +++ b/src/main/java/eu/siacs/conversations/utils/StylingHelper.java @@ -129,7 +129,7 @@ public class StylingHelper { int start = indexOfIgnoreCase(string, needle, 0); while (start != -1) { int end = start + length; - editable.setSpan(new BackgroundColorSpan(ContextCompat.getColor(context, dark ? R.color.blue_a100 : R.color.blue_a200)), start, end, SpannableString.SPAN_EXCLUSIVE_EXCLUSIVE); + editable.setSpan(new BackgroundColorSpan(ContextCompat.getColor(context, dark ? R.color.blue_a100 : R.color.blue_a400)), start, end, SpannableString.SPAN_EXCLUSIVE_EXCLUSIVE); editable.setSpan(new ForegroundColorSpan(ContextCompat.getColor(context, dark ? R.color.black87 : R.color.white)), start, end, SpannableString.SPAN_EXCLUSIVE_EXCLUSIVE); start = indexOfIgnoreCase(string, needle, start + length); } diff --git a/src/main/res/values/colors.xml b/src/main/res/values/colors.xml index 4332d1907..a61aa0e46 100644 --- a/src/main/res/values/colors.xml +++ b/src/main/res/values/colors.xml @@ -26,6 +26,8 @@ #ffff9800 #ff82B1FF #ff448AFF + #ff2979FF + #ff2962FF #ff4CAF50 #ff43A047 #ff388E3C diff --git a/src/main/res/values/themes.xml b/src/main/res/values/themes.xml index c9d20fcd8..78341bcfd 100644 --- a/src/main/res/values/themes.xml +++ b/src/main/res/values/themes.xml @@ -4,7 +4,7 @@