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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 803 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

View File

@ -36,6 +36,7 @@
android:layout_marginLeft="20dp"
android:layout_marginTop="10dp"
android:text="TextView"
android:textSize="25dp"
tools:layout_editor_absoluteX="8dp"
tools:layout_editor_absoluteY="3dp" />
@ -46,8 +47,9 @@
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:alpha="1"
android:clickable="true"
android:src="@drawable/ic_settings_black" />
android:src="@drawable/ic_settings_gray" />
</RelativeLayout>