From 0a6004b15746c8505aaf77043429f12bce09dfb0 Mon Sep 17 00:00:00 2001 From: RichyHBM Date: Tue, 19 Dec 2017 20:32:33 +0000 Subject: [PATCH] Add a background to thumbnails for better visibility in dark themes --- app/src/main/res/layout/component_card.xml | 4 +++- app/src/main/res/values/dimens.xml | 1 + app/src/main/res/values/styles.xml | 4 ++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/app/src/main/res/layout/component_card.xml b/app/src/main/res/layout/component_card.xml index b760ce18..e69cb1c5 100644 --- a/app/src/main/res/layout/component_card.xml +++ b/app/src/main/res/layout/component_card.xml @@ -18,7 +18,9 @@ android:layout_width="@dimen/card_thumbnail_size" android:layout_height="@dimen/card_thumbnail_size" android:layout_marginEnd="@dimen/activity_margin" - android:src="@mipmap/ic_launcher"/> + android:padding="@dimen/thumbnail_padding" + android:background="?attr/thumbnailBackground" + android:src="@mipmap/ic_launcher" /> 33sp + 2dp 200dp 1dp diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index ef00d9c2..5fe89f5b 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -5,6 +5,7 @@ + @@ -41,6 +43,7 @@ @color/colorAccent ?android:attr/colorBackground + @android:color/white @color/github_light @color/paypal_light @@ -60,6 +63,7 @@ @color/colorAccent @android:color/black + @android:color/white @color/github_light @color/paypal_light