From f3f80f0c6e170412bed0640dcd5399f4d6c10e96 Mon Sep 17 00:00:00 2001 From: Luc Ritchie Date: Wed, 13 Jan 2016 08:57:24 -0500 Subject: [PATCH] Theme background color in device link screens Fixes #4611 Closes #5066 --- res/layout/device_add_fragment.xml | 4 ++-- res/layout/device_link_fragment.xml | 3 ++- res/values/attrs.xml | 2 ++ res/values/colors.xml | 3 +++ res/values/themes.xml | 4 ++++ 5 files changed, 13 insertions(+), 3 deletions(-) diff --git a/res/layout/device_add_fragment.xml b/res/layout/device_add_fragment.xml index 2cf1fbeadf..eb9369d622 100644 --- a/res/layout/device_add_fragment.xml +++ b/res/layout/device_add_fragment.xml @@ -30,7 +30,7 @@ android:layout_weight="1" android:paddingLeft="16dp" android:paddingRight="16dp" - android:background="@color/gray5" + android:background="?android:windowBackground" android:gravity="center"> + android:textColor="?android:textColorSecondary"/> diff --git a/res/layout/device_link_fragment.xml b/res/layout/device_link_fragment.xml index f67863d6fe..e3cdc7672d 100644 --- a/res/layout/device_link_fragment.xml +++ b/res/layout/device_link_fragment.xml @@ -22,7 +22,8 @@ + android:orientation="vertical" + android:background="?device_link_item_card_background"> + + diff --git a/res/values/colors.xml b/res/values/colors.xml index e2de5006b3..60011e75cd 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -40,6 +40,9 @@ #33ffffff #66ffffff + #ffffffff + #ff333333 + #ffeeeeee #ff333333 #ffd5d5d5 diff --git a/res/values/themes.xml b/res/values/themes.xml index 7fec3cbd5d..8fb41c3556 100644 --- a/res/values/themes.xml +++ b/res/values/themes.xml @@ -155,6 +155,8 @@ @drawable/ic_info_outline_light @drawable/ic_warning_light + @color/device_link_item_background_light + @color/import_export_item_background_light @color/import_export_item_background_shadow_light @drawable/clickable_card_light @@ -234,6 +236,8 @@ @drawable/ic_info_outline_dark @drawable/ic_warning_dark + @color/device_link_item_background_dark + @color/import_export_item_background_dark @color/import_export_item_background_shadow_dark @drawable/clickable_card_dark