From 3bbc53b35f273eb9d9bdd2546dd1b38e38507a7e Mon Sep 17 00:00:00 2001 From: Sawyer Blatz Date: Tue, 30 Jul 2019 09:19:48 -0700 Subject: [PATCH] [fenix] For https://github.com/mozilla-mobile/fenix/issues/1750: Adds gradient to private BrowserToolbar (https://github.com/mozilla-mobile/fenix/pull/4361) Also updates the color of quickActionSheet ot be "above" attribute --- .../main/res/drawable/toolbar_background.xml | 7 ++++++- app/src/main/res/values-night/colors.xml | 3 +++ app/src/main/res/values/attrs.xml | 4 +++- app/src/main/res/values/colors.xml | 18 +++++++++++++++--- app/src/main/res/values/styles.xml | 7 +++++++ 5 files changed, 34 insertions(+), 5 deletions(-) diff --git a/app/src/main/res/drawable/toolbar_background.xml b/app/src/main/res/drawable/toolbar_background.xml index b16e08a044..be4a8aff7f 100644 --- a/app/src/main/res/drawable/toolbar_background.xml +++ b/app/src/main/res/drawable/toolbar_background.xml @@ -5,7 +5,12 @@ - + diff --git a/app/src/main/res/values-night/colors.xml b/app/src/main/res/values-night/colors.xml index 3d676cf167..60cdab46e7 100644 --- a/app/src/main/res/values-night/colors.xml +++ b/app/src/main/res/values-night/colors.xml @@ -25,6 +25,9 @@ @color/toggle_off_track_dark_theme @color/accent_bright_dark_theme @color/accent_high_contrast_dark_theme + @color/toolbar_start_gradient_dark_theme + @color/toolbar_center_gradient_dark_theme + @color/toolbar_end_gradient_dark_theme @color/collection_icon_color_violet_dark_theme diff --git a/app/src/main/res/values/attrs.xml b/app/src/main/res/values/attrs.xml index db12e0eb78..4154355016 100644 --- a/app/src/main/res/values/attrs.xml +++ b/app/src/main/res/values/attrs.xml @@ -21,7 +21,6 @@ - @@ -31,6 +30,9 @@ + + + diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index e6b15750b5..319bba4a08 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -26,6 +26,9 @@ #E31587 #2AC3A2 #E27F2E + @color/foundation_light_theme + @color/foundation_light_theme + @color/foundation_light_theme #FBFBFE @@ -39,7 +42,7 @@ #AB71FF @color/accent_dark_theme @color/photonGrey20 - #1FEDEDF0 + #1FFBFBFE #050505 #FF6A75 #66FBFBFE @@ -50,12 +53,15 @@ #FF6BBA #88FFD1 #FFDE67 + @color/foundation_dark_theme + @color/foundation_dark_theme + @color/foundation_dark_theme #FBFBFE #A7A2B7 @color/primary_text_private_theme - #1D1133 + #261E4B #362A5C #291D4F #9059FF @@ -63,7 +69,7 @@ #AA71FF #F565FF @color/photonGrey20 - #1FEDEDF0 + #1FFBFBFE #2B1067 #FF6A75 #66FBFBFE @@ -71,6 +77,9 @@ #F515141A @color/accent_bright_private_theme @color/accent_high_contrast_private_theme + #7529A7 + #492E85 + #383372 @color/primary_text_light_theme @@ -92,6 +101,9 @@ @color/scrimEnd_light_theme @color/accent_light_theme @color/accent_bright_light_theme + @color/toolbar_start_gradient_light_theme + @color/toolbar_center_gradient_light_theme + @color/toolbar_end_gradient_light_theme #DFDFE3 diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 7d3f0e0f5a..78f7dcf73e 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -45,6 +45,10 @@ @color/scrimEnd_normal_theme @color/snackbar_normal_theme @color/accent_on_dark_background_normal_theme + @color/toolbar_start_gradient_normal_theme + @color/toolbar_center_gradient_normal_theme + @color/toolbar_end_gradient_normal_theme + @drawable/ic_logo_wordmark_normal @color/foundation_normal_theme @@ -121,6 +125,9 @@ @color/scrimEnd_private_theme @color/snackbar_private_theme @color/accent_on_dark_background_private_theme + @color/toolbar_start_gradient_private_theme + @color/toolbar_center_gradient_private_theme + @color/toolbar_end_gradient_private_theme @drawable/ic_logo_wordmark_private