Add a background to thumbnails for better visibility in dark themes
This commit is contained in:
parent
f805eb41f8
commit
0a6004b157
3 changed files with 8 additions and 1 deletions
|
@ -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" />
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
|
||||
<!-- The default letter tile text size -->
|
||||
<dimen name="tile_letter_font_size">33sp</dimen>
|
||||
<dimen name="thumbnail_padding">2dp</dimen>
|
||||
|
||||
<dimen name="drawer_width">200dp</dimen>
|
||||
<dimen name="divider_size">1dp</dimen>
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
<attr name="colorGithub" format="reference" />
|
||||
<attr name="colorPaypal" format="reference" />
|
||||
<attr name="thumbnailBackground" format="reference" />
|
||||
|
||||
<!-- General styles -->
|
||||
<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
|
||||
|
@ -19,6 +20,7 @@
|
|||
|
||||
<item name="colorGithub">@color/github_dark</item>
|
||||
<item name="colorPaypal">@color/paypal_dark</item>
|
||||
<item name="thumbnailBackground">@android:color/transparent</item>
|
||||
|
||||
<item name="cardStyle">@style/CardViewStyle</item>
|
||||
</style>
|
||||
|
@ -41,6 +43,7 @@
|
|||
<item name="colorAccent">@color/colorAccent</item>
|
||||
|
||||
<item name="windowBackground">?android:attr/colorBackground</item>
|
||||
<item name="thumbnailBackground">@android:color/white</item>
|
||||
|
||||
<item name="colorGithub">@color/github_light</item>
|
||||
<item name="colorPaypal">@color/paypal_light</item>
|
||||
|
@ -60,6 +63,7 @@
|
|||
<item name="colorAccent">@color/colorAccent</item>
|
||||
|
||||
<item name="windowBackground">@android:color/black</item>
|
||||
<item name="thumbnailBackground">@android:color/white</item>
|
||||
|
||||
<item name="colorGithub">@color/github_light</item>
|
||||
<item name="colorPaypal">@color/paypal_light</item>
|
||||
|
|
Loading…
Reference in a new issue