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.
This commit is contained in:
Eric House 2021-10-27 15:45:14 -07:00
parent 847024512a
commit 6df8f10e3a
2 changed files with 6 additions and 1 deletions

View file

@ -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;

View file

@ -79,7 +79,7 @@
<org.eehouse.android.xw4.EditColorPreference
android:key="@string/key_cellline_dark"
android:title="@string/cellline"
android:defaultValue="0x303030"
android:defaultValue="0x373730"
/>
<org.eehouse.android.xw4.XWListPreference