From 16127c31a891a69272355ea48fd254247311dbbd Mon Sep 17 00:00:00 2001 From: Emily Kager Date: Wed, 3 Apr 2019 11:17:13 -0700 Subject: [PATCH] For #1049 - Add photon gradient drawable for progressbar --- CHANGELOG.md | 1 + .../main/res/drawable/progress_gradient.xml | 22 +++++++++++++++++++ app/src/main/res/values-night/colors.xml | 1 + app/src/main/res/values/attrs.xml | 1 + app/src/main/res/values/colors.xml | 2 ++ app/src/main/res/values/styles.xml | 8 ++++++- 6 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 app/src/main/res/drawable/progress_gradient.xml diff --git a/CHANGELOG.md b/CHANGELOG.md index ac2be5c86..e4b1d4a22 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - #208 - Added normal browsing dark mode (advised to use attrs from now on for most referenced colors) - #957 - Adds telemetry for the context menu - #1036 - Adds telemetry for Find in Page +- #1049 - Add style for progress bar with gradient drawable ### Changed ### Removed \ No newline at end of file diff --git a/app/src/main/res/drawable/progress_gradient.xml b/app/src/main/res/drawable/progress_gradient.xml new file mode 100644 index 000000000..5ad75fd03 --- /dev/null +++ b/app/src/main/res/drawable/progress_gradient.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/values-night/colors.xml b/app/src/main/res/values-night/colors.xml index 83556834d..3f147fd57 100644 --- a/app/src/main/res/values-night/colors.xml +++ b/app/src/main/res/values-night/colors.xml @@ -19,6 +19,7 @@ @color/background_dark_theme + #42414D @color/off_white diff --git a/app/src/main/res/values/attrs.xml b/app/src/main/res/values/attrs.xml index a822adcdd..d9966f4b8 100644 --- a/app/src/main/res/values/attrs.xml +++ b/app/src/main/res/values/attrs.xml @@ -47,6 +47,7 @@ + diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index a49c12f64..1140eeb14 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -39,6 +39,7 @@ @color/off_white @color/menu_button_tint_normal_theme @color/off_white + #E0E0E6 @color/off_white #c5c8d7 @@ -87,6 +88,7 @@ @color/photonGrey40 @color/off_white @color/photonGrey40 + #4f4e75 #B9F0FD diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 0667ecbcc..59040f3c0 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -14,11 +14,11 @@ @color/toolbar_normal_theme @color/color_primary @color/session_border_color + @style/progressBarStyleHorizontal @color/text_color_normal_theme @color/secondary_text_color_normal_theme @color/background_dark_theme - @color/toggle_activated_normal_theme @color/colorSwitchThumbNormal_normal_theme @@ -64,6 +64,7 @@ @color/icons_normal_theme @color/quick_action_pull_tab @color/quick_action_background_normal_theme + @color/unloaded_progress_normal_theme @color/history_title_normal_theme @@ -127,6 +128,7 @@ @color/icons_dark_mode @color/off_white @color/quick_action_background_private_theme + @color/unloaded_progress_private_theme @color/history_title_private_theme @@ -216,4 +218,8 @@ + +