From 32bc8aac5168992274da54cd36dc0bdf4ddc643d Mon Sep 17 00:00:00 2001 From: Alex Baker Date: Sun, 1 Mar 2020 11:22:23 -0600 Subject: [PATCH] Use white_100 for "On" colors --- app/src/main/java/org/tasks/themes/ThemeColor.java | 2 +- app/src/main/res/values/styles.xml | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/org/tasks/themes/ThemeColor.java b/app/src/main/java/org/tasks/themes/ThemeColor.java index d1e2a6bca..565069b4a 100644 --- a/app/src/main/java/org/tasks/themes/ThemeColor.java +++ b/app/src/main/java/org/tasks/themes/ThemeColor.java @@ -154,7 +154,7 @@ public class ThemeColor implements Pickable { this.colorPrimary = colorPrimary; this.colorPrimaryVariant = ColorUtil.darken(colorPrimary, 12); - int whiteText = context.getResources().getColor(R.color.white_87); + int whiteText = context.getResources().getColor(R.color.white_100); double contrast = ColorUtils.calculateContrast(whiteText, colorPrimary); this.isDark = contrast < 3; colorOnPrimary = isDark ? context.getResources().getColor(R.color.black_87) : whiteText; diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 6a22152e2..9bcbd78a2 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -28,7 +28,7 @@ @@ -41,7 +41,7 @@