From 0eaf9f3c1274d6f3c03d1ca8edc7e4b3659dc451 Mon Sep 17 00:00:00 2001
From: Neha Binwal <67039214+neha-b2001@users.noreply.github.com>
Date: Sat, 8 May 2021 01:18:35 +0530
Subject: [PATCH] For #8984: Added color for "Share" menu's "Recently Used" in
Dark theme (#18839)
* Added color for "Share" menu's "Recently Used" in Dark theme
- Changed HEX code for inset_dark_theme in values/colors.xml
* Replaced #52525E in values/colors.xml with @color/photonDarkGrey10
* Added color for "Share" menu's "Recently Used" in Dark theme
- Created a separate attribute recentlyUsedSharedMenu to be used by 'recently used' panel of tab share menu
- It specifies colors to be used for Light and Dark theme
---
app/src/main/res/drawable/recent_apps_background.xml | 2 +-
app/src/main/res/values-night/colors.xml | 1 +
app/src/main/res/values/attrs.xml | 1 +
app/src/main/res/values/colors.xml | 6 ++++--
app/src/main/res/values/styles.xml | 1 +
5 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/app/src/main/res/drawable/recent_apps_background.xml b/app/src/main/res/drawable/recent_apps_background.xml
index 3aaebe4318..2be5826a3d 100644
--- a/app/src/main/res/drawable/recent_apps_background.xml
+++ b/app/src/main/res/drawable/recent_apps_background.xml
@@ -3,6 +3,6 @@
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
-
+
diff --git a/app/src/main/res/values-night/colors.xml b/app/src/main/res/values-night/colors.xml
index 15fbe257ef..00fd1e95d7 100644
--- a/app/src/main/res/values-night/colors.xml
+++ b/app/src/main/res/values-night/colors.xml
@@ -54,6 +54,7 @@
@color/preference_section_header_dark_theme
@color/accent_high_contrast_dark_theme
@color/accent_high_contrast_dark_theme
+ @color/recently_used_share_menu_dark_theme
@color/mozac_widget_favicon_background_dark_theme
@color/mozac_widget_favicon_border_dark_theme
diff --git a/app/src/main/res/values/attrs.xml b/app/src/main/res/values/attrs.xml
index 1c8ce3c53f..a5fa3ff879 100644
--- a/app/src/main/res/values/attrs.xml
+++ b/app/src/main/res/values/attrs.xml
@@ -27,6 +27,7 @@
+
diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml
index 2e92a20e58..6a9b32b8dc 100644
--- a/app/src/main/res/values/colors.xml
+++ b/app/src/main/res/values/colors.xml
@@ -106,7 +106,7 @@
@color/foundation_dark_theme
@color/foundation_dark_theme
@color/foundation_dark_theme
- #52525E
+ @color/photonDarkGrey10
@color/accent_on_dark_background_normal_theme
#FFF36E
#5B5846
@@ -123,6 +123,7 @@
#2ac3a2
#0090ed
@color/accent_high_contrast_dark_theme
+ @color/photonDarkGrey10
@color/photonDarkGrey50
@color/photonDarkGrey10
@@ -170,7 +171,7 @@
#7529A7
#492E85
#383372
- #52525E
+ @color/photonDarkGrey10
@color/accent_on_dark_background_private_theme
@color/primary_text_private_theme
#C45A27
@@ -251,6 +252,7 @@
@color/mozac_widget_favicon_border_light_theme
@color/accent_bright_light_theme
@color/menu_item_button_light_theme
+ @color/inset_light_theme
@color/tab_tray_item_text_light_theme
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
index e5c2d31f22..e0074a54df 100644
--- a/app/src/main/res/values/styles.xml
+++ b/app/src/main/res/values/styles.xml
@@ -83,6 +83,7 @@
- @color/select_login_header_normal_theme
- @color/preference_section_header_normal_theme
- @color/menu_item_button_normal_theme
+ - @color/recently_used_share_theme
- @color/primary_text_normal_theme