From 6df8f10e3a520f7f3b8c15551a709fa353593127 Mon Sep 17 00:00:00 2001 From: Eric House Date: Wed, 27 Oct 2021 15:45:14 -0700 Subject: [PATCH] use cellline color to frame tiles Was just plain black before, and that didn't work well on dark theme when it came time to select for trade. --- .../src/main/java/org/eehouse/android/xw4/BoardCanvas.java | 5 +++++ .../app/src/main/res/xml/prefs_appear_colors_dark.xml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/BoardCanvas.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/BoardCanvas.java index b5064e1ca..a5a6cc257 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/BoardCanvas.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/BoardCanvas.java @@ -516,6 +516,10 @@ public class BoardCanvas extends Canvas implements DrawCtx { { m_trayOwner = owner; m_pendingScore = score; + if ( null != m_tileStrokePaint ) { + // force new color just in case it's changed + m_tileStrokePaint.setColor( m_otherColors[CommonPrefs.COLOR_CELLLINE] ); + } return true; } @@ -990,6 +994,7 @@ public class BoardCanvas extends Canvas implements DrawCtx { Paint paint = new Paint(); paint.setStyle( Paint.Style.STROKE ); paint.setStrokeWidth( Math.max( 2, rect.width() / 20 ) ); + paint.setColor( m_otherColors[CommonPrefs.COLOR_CELLLINE] ); m_tileStrokePaint = paint; } return m_tileStrokePaint; diff --git a/xwords4/android/app/src/main/res/xml/prefs_appear_colors_dark.xml b/xwords4/android/app/src/main/res/xml/prefs_appear_colors_dark.xml index c1eeaf4b8..34ce1f2dd 100644 --- a/xwords4/android/app/src/main/res/xml/prefs_appear_colors_dark.xml +++ b/xwords4/android/app/src/main/res/xml/prefs_appear_colors_dark.xml @@ -79,7 +79,7 @@