From 9d89497a0a91e948b296558b28ac6d37fe14af91 Mon Sep 17 00:00:00 2001 From: Jonathan Almeida Date: Fri, 26 Jun 2020 19:10:41 -0400 Subject: [PATCH] For #12002: Show default tab background when thumbnail not available --- app/src/main/res/layout/tab_tray_item.xml | 10 ++++++++++ app/src/main/res/values-night/colors.xml | 2 ++ app/src/main/res/values/attrs.xml | 2 ++ app/src/main/res/values/colors.xml | 6 ++++++ app/src/main/res/values/styles.xml | 4 ++++ 5 files changed, 24 insertions(+) diff --git a/app/src/main/res/layout/tab_tray_item.xml b/app/src/main/res/layout/tab_tray_item.xml index 3386313458aa..0a465794e93c 100644 --- a/app/src/main/res/layout/tab_tray_item.xml +++ b/app/src/main/res/layout/tab_tray_item.xml @@ -29,10 +29,20 @@ android:layout_height="69dp" android:layout_marginStart="16dp" android:layout_marginTop="8dp" + android:backgroundTint="?tabTrayThumbnailItemBackground" app:cardBackgroundColor="@color/photonWhite" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent"> + + @color/tab_tray_item_media_background_dark_theme @color/tab_tray_heading_icon_dark_theme @color/tab_tray_heading_icon_inactive_dark_theme + @color/tab_tray_item_thumbnail_background_dark_theme + @color/tab_tray_item_thumbnail_icon_dark_theme @color/top_site_background_dark_theme diff --git a/app/src/main/res/values/attrs.xml b/app/src/main/res/values/attrs.xml index 3c6241ebadc6..f73cec054d96 100644 --- a/app/src/main/res/values/attrs.xml +++ b/app/src/main/res/values/attrs.xml @@ -59,6 +59,8 @@ + + diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index b31fb08d019f..d1545fdf67ce 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -82,6 +82,8 @@ #312A65 @color/ink_20 @color/ink_20_48a + @color/light_grey_10 + @color/light_grey_60 #FBFBFE @@ -138,6 +140,8 @@ #9059FF @color/violet_50 @color/violet_50_48a + @color/dark_grey_50 + @color/dark_grey_05 #FBFBFE @@ -241,6 +245,8 @@ @color/tab_tray_item_media_background_light_theme @color/tab_tray_heading_icon_light_theme @color/tab_tray_heading_icon_inactive_light_theme + @color/tab_tray_item_thumbnail_background_light_theme + @color/tab_tray_item_thumbnail_icon_light_theme #DFDFE3 diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 3d2ffb4a5ba3..4071fef961b2 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -83,6 +83,8 @@ @color/tab_tray_item_media_background_normal_theme @color/tab_tray_heading_icon_normal_theme @color/tab_tray_heading_icon_inactive_normal_theme + @color/tab_tray_item_thumbnail_background_normal_theme + @color/tab_tray_item_thumbnail_icon_normal_theme @drawable/ic_logo_wordmark_normal @@ -208,6 +210,8 @@ @color/tab_tray_item_media_background_private_theme @color/tab_tray_heading_icon_dark_theme @color/tab_tray_heading_icon_inactive_dark_theme + @color/tab_tray_item_thumbnail_background_normal_theme + @color/tab_tray_item_thumbnail_icon_normal_theme @drawable/ic_logo_wordmark_private