mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-03 20:46:01 +01:00
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:
parent
847024512a
commit
6df8f10e3a
2 changed files with 6 additions and 1 deletions
|
@ -516,6 +516,10 @@ public class BoardCanvas extends Canvas implements DrawCtx {
|
||||||
{
|
{
|
||||||
m_trayOwner = owner;
|
m_trayOwner = owner;
|
||||||
m_pendingScore = score;
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -990,6 +994,7 @@ public class BoardCanvas extends Canvas implements DrawCtx {
|
||||||
Paint paint = new Paint();
|
Paint paint = new Paint();
|
||||||
paint.setStyle( Paint.Style.STROKE );
|
paint.setStyle( Paint.Style.STROKE );
|
||||||
paint.setStrokeWidth( Math.max( 2, rect.width() / 20 ) );
|
paint.setStrokeWidth( Math.max( 2, rect.width() / 20 ) );
|
||||||
|
paint.setColor( m_otherColors[CommonPrefs.COLOR_CELLLINE] );
|
||||||
m_tileStrokePaint = paint;
|
m_tileStrokePaint = paint;
|
||||||
}
|
}
|
||||||
return m_tileStrokePaint;
|
return m_tileStrokePaint;
|
||||||
|
|
|
@ -79,7 +79,7 @@
|
||||||
<org.eehouse.android.xw4.EditColorPreference
|
<org.eehouse.android.xw4.EditColorPreference
|
||||||
android:key="@string/key_cellline_dark"
|
android:key="@string/key_cellline_dark"
|
||||||
android:title="@string/cellline"
|
android:title="@string/cellline"
|
||||||
android:defaultValue="0x303030"
|
android:defaultValue="0x373730"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<org.eehouse.android.xw4.XWListPreference
|
<org.eehouse.android.xw4.XWListPreference
|
||||||
|
|
Loading…
Add table
Reference in a new issue