Fast stylistic cleanup of deck view.

* Bigger card names.
* Gray settings button (instead of black).
This commit is contained in:
kenkeiras 2018-01-24 22:19:52 +01:00
parent 4d8cdcb82d
commit 89745c1699
7 changed files with 11 additions and 3 deletions

View file

@ -61,9 +61,15 @@ class CardPreviewArrayAdapter extends ArrayAdapter<PreviewCard> {
CardView cardView = (CardView) row.findViewById(R.id.card_preview_card);
TextView nameView = (TextView) row.findViewById(R.id.card_preview_name);
cardView.setBackgroundColor(card.getColor());
int backgroundColor = card.getColor();
cardView.setBackgroundColor(backgroundColor);
nameView.setText(card.getName());
nameView.setTextColor(0xFFFFFF ^ card.getColor());
if (backgroundColor == CardFile.DEFAULT_BACKGROUND_COLOR){
nameView.setTextColor(0xFFF0F0F0);
}
else {
nameView.setTextColor(0xFFFFFF ^ backgroundColor);
}
return row;
}