From ffd3049d997d4fe8eabca2e9dca241eec0844368 Mon Sep 17 00:00:00 2001 From: Emily Kager Date: Tue, 12 Feb 2019 16:58:27 -0800 Subject: [PATCH] Closes #463 - Add attr for home divider color for private mode theming --- app/src/main/res/layout/fragment_home.xml | 2 +- app/src/main/res/values/attrs.xml | 1 + app/src/main/res/values/styles.xml | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/res/layout/fragment_home.xml b/app/src/main/res/layout/fragment_home.xml index 482835691..0e67e5e84 100644 --- a/app/src/main/res/layout/fragment_home.xml +++ b/app/src/main/res/layout/fragment_home.xml @@ -78,7 +78,7 @@ android:id="@+id/homeDivider" android:layout_width="match_parent" android:layout_height="1dp" - android:background="@color/photonGrey30" + android:background="?attr/homeDividerColor" app:layout_constraintTop_toBottomOf="@id/toolbar_wrapper" app:layout_constraintStart_toStartOf="parent" app:layout_constraintEnd_toEndOf="parent" diff --git a/app/src/main/res/values/attrs.xml b/app/src/main/res/values/attrs.xml index afa6800d1..c9f341c1d 100644 --- a/app/src/main/res/values/attrs.xml +++ b/app/src/main/res/values/attrs.xml @@ -22,6 +22,7 @@ + diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 498fe0677..3f09f3fa5 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -23,6 +23,7 @@ @android:color/black @drawable/home_search_background_light @color/search_text + @color/photonGrey30 @color/off_white @@ -62,6 +63,7 @@ @color/off_white @drawable/home_search_background_private @color/off_white + @color/search_private_background @color/private_browsing_bottom_gradient