From a4fe413537efb88a317a6e31e1a3cd80c8c7fa27 Mon Sep 17 00:00:00 2001 From: Sawyer Blatz Date: Fri, 8 Feb 2019 10:37:04 -0800 Subject: [PATCH] Closes #412: Enforces consistent naming in colors.xml --- .../fenix/search/toolbar/ToolbarUIView.kt | 4 +- .../drawable/home_search_background_dark.xml | 4 +- .../home_search_background_dark_no_border.xml | 2 +- .../drawable/home_search_background_light.xml | 2 +- .../home_search_background_private.xml | 4 +- .../home_search_background_private_dark.xml | 4 +- ...arch_background_private_dark_no_border.xml | 2 +- app/src/main/res/drawable/ic_home_white.xml | 2 +- .../res/drawable/ic_launcher_background.xml | 2 +- ...ivate_browsing_button_white_background.xml | 2 +- .../main/res/layout/component_awesomebar.xml | 4 +- app/src/main/res/layout/fragment_browser.xml | 2 +- app/src/main/res/values/colors.xml | 30 +++++++-------- app/src/main/res/values/styles.xml | 38 +++++++++---------- 14 files changed, 51 insertions(+), 51 deletions(-) diff --git a/app/src/main/java/org/mozilla/fenix/search/toolbar/ToolbarUIView.kt b/app/src/main/java/org/mozilla/fenix/search/toolbar/ToolbarUIView.kt index dc5fccd7a..320b95dcd 100644 --- a/app/src/main/java/org/mozilla/fenix/search/toolbar/ToolbarUIView.kt +++ b/app/src/main/java/org/mozilla/fenix/search/toolbar/ToolbarUIView.kt @@ -44,10 +44,10 @@ class ToolbarUIView( browserActionMargin = resources.pxToDp(browserActionMarginDp) urlBoxView = urlBackground - textColor = ContextCompat.getColor(context, R.color.searchText) + textColor = ContextCompat.getColor(context, R.color.search_text) textSize = toolbarTextSizeSp hint = context.getString(R.string.search_hint) - hintColor = ContextCompat.getColor(context, R.color.searchText) + hintColor = ContextCompat.getColor(context, R.color.search_text) setOnEditListener(object : mozilla.components.concept.toolbar.Toolbar.OnEditListener { override fun onTextChanged(text: String) { diff --git a/app/src/main/res/drawable/home_search_background_dark.xml b/app/src/main/res/drawable/home_search_background_dark.xml index bc17d0064..a8f228004 100644 --- a/app/src/main/res/drawable/home_search_background_dark.xml +++ b/app/src/main/res/drawable/home_search_background_dark.xml @@ -3,10 +3,10 @@ - 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/. --> - + + android:color="@color/search_stroke_alternative"/> - + + android:color="@color/search_stroke"/> \ No newline at end of file diff --git a/app/src/main/res/drawable/home_search_background_private.xml b/app/src/main/res/drawable/home_search_background_private.xml index 3fe9a85fc..40724c932 100644 --- a/app/src/main/res/drawable/home_search_background_private.xml +++ b/app/src/main/res/drawable/home_search_background_private.xml @@ -3,10 +3,10 @@ - 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/. --> - + + android:color="@color/search_stroke_private"/> \ No newline at end of file diff --git a/app/src/main/res/drawable/home_search_background_private_dark.xml b/app/src/main/res/drawable/home_search_background_private_dark.xml index 54a0af3f1..ad45433e8 100644 --- a/app/src/main/res/drawable/home_search_background_private_dark.xml +++ b/app/src/main/res/drawable/home_search_background_private_dark.xml @@ -3,10 +3,10 @@ - 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/. --> - + + android:color="@color/search_stroke_private"/> \ No newline at end of file diff --git a/app/src/main/res/drawable/home_search_background_private_dark_no_border.xml b/app/src/main/res/drawable/home_search_background_private_dark_no_border.xml index d4f54cb0a..c71a3985b 100644 --- a/app/src/main/res/drawable/home_search_background_private_dark_no_border.xml +++ b/app/src/main/res/drawable/home_search_background_private_dark_no_border.xml @@ -3,7 +3,7 @@ - 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/. --> - + + android:fillColor="@color/off_white"/> diff --git a/app/src/main/res/drawable/ic_launcher_background.xml b/app/src/main/res/drawable/ic_launcher_background.xml index bc1e11d56..7d06d03da 100644 --- a/app/src/main/res/drawable/ic_launcher_background.xml +++ b/app/src/main/res/drawable/ic_launcher_background.xml @@ -8,7 +8,7 @@ - + diff --git a/app/src/main/res/drawable/private_browsing_button_white_background.xml b/app/src/main/res/drawable/private_browsing_button_white_background.xml index 86a28894f..72b71d81d 100644 --- a/app/src/main/res/drawable/private_browsing_button_white_background.xml +++ b/app/src/main/res/drawable/private_browsing_button_white_background.xml @@ -12,7 +12,7 @@ - + diff --git a/app/src/main/res/layout/component_awesomebar.xml b/app/src/main/res/layout/component_awesomebar.xml index 51433a8d8..00cc92f3a 100644 --- a/app/src/main/res/layout/component_awesomebar.xml +++ b/app/src/main/res/layout/component_awesomebar.xml @@ -17,5 +17,5 @@ app:layout_constraintBottom_toTopOf="@id/pill_wrapper" mozac:awesomeBarTitleTextColor="?attr/awesomeBarTitleTextColor" mozac:awesomeBarDescriptionTextColor="?attr/awesomeBarDescriptionTextColor" - mozac:awesomeBarChipTextColor="@color/offwhite" - mozac:awesomeBarChipBackgroundColor="@color/photonBlue40" /> \ No newline at end of file + mozac:awesomeBarChipTextColor="@color/off_white" + mozac:awesomeBarChipBackgroundColor="@color/photonBlue40"/> \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_browser.xml b/app/src/main/res/layout/fragment_browser.xml index 8b2765248..ece8b4fdf 100644 --- a/app/src/main/res/layout/fragment_browser.xml +++ b/app/src/main/res/layout/fragment_browser.xml @@ -38,7 +38,7 @@ android:layout_width="match_parent" android:layout_height="56dp" android:layout_gravity="bottom" - android:background="@color/offwhite" + android:background="@color/off_white" mozac:findInPageResultCountTextColor="?android:attr/colorPrimary" mozac:findInPageButtonsTint="?android:attr/colorPrimary" android:visibility="gone" diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index 88cb68eeb..506ff91e3 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -3,22 +3,22 @@ - 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/. --> - #544CD9 - #202340 - #D81B60 + #544CD9 + #202340 + #D81B60 - #212121 - #6b6b6b - #F2F2F5 - #E9E9ED - #4f4e75 - #42416b - #393863 - #c5c8d7 - #0A202340 - #2d2e5f - #0C0C0D - #f9f9fa + #212121 + #6b6b6b + #F2F2F5 + #E9E9ED + #4f4e75 + #42416b + #393863 + #c5c8d7 + #0A202340 + #2d2e5f + #0C0C0D + #f9f9fa #E9E9ED #20233E diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index acb5cf351..f23634738 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -7,31 +7,31 @@ @@ -54,22 +54,22 @@ @color/private_browsing_bottom_gradient @drawable/home_background_gradient @drawable/private_browsing_button_background - @color/offwhite + @color/off_white @drawable/ic_logo_wordmark_white - @color/offwhite + @color/off_white @drawable/home_search_background_private - @color/offwhite + @color/off_white @color/private_browsing_bottom_gradient - @color/offwhite + @color/off_white @color/private_browsing_top_gradient - @color/offwhite + @color/off_white @color/photonGrey40 @color/private_browsing_bottom_gradient - @color/offwhite + @color/off_white @drawable/ic_home_white @@ -84,8 +84,8 @@