From a47443ce99f90a42e7aa1ca266532254f8151564 Mon Sep 17 00:00:00 2001 From: uykek Date: Wed, 3 Jun 2020 16:22:02 +0200 Subject: [PATCH] Replace color references with attributes in the following vector drawables: --- app/src/main/res/drawable-v21/ratingbar.xml | 6 +++--- app/src/main/res/drawable/ic_school_black_24dp.xml | 2 +- app/src/main/res/drawable/ic_star_black_48dp.xml | 2 +- app/src/main/res/drawable/ic_star_blue_36dp.xml | 2 +- app/src/main/res/drawable/ic_star_grey_36dp.xml | 2 +- app/src/main/res/drawable/ic_star_half_black_48dp.xml | 2 +- app/src/main/res/drawable/ic_trophy_award_black_48dp.xml | 2 +- app/src/main/res/drawable/ic_trophy_black_48dp.xml | 2 +- app/src/main/res/drawable/ic_undo_black_48dp.xml | 4 ++-- app/src/main/res/drawable/inactive_button.xml | 2 +- app/src/main/res/drawable/mnenomic_numpad_button.xml | 2 +- app/src/main/res/drawable/numpad_highlighted.xml | 6 +++--- app/src/main/res/drawable/numpad_highlighted_four.xml | 6 +++--- app/src/main/res/drawable/numpad_highlighted_three.xml | 6 +++--- app/src/main/res/drawable/splash_screen.xml | 2 +- app/src/main/res/drawable/standalone_button.xml | 2 +- app/src/main/res/values/attrs.xml | 5 +++++ app/src/main/res/values/styles.xml | 5 +++++ 18 files changed, 35 insertions(+), 25 deletions(-) diff --git a/app/src/main/res/drawable-v21/ratingbar.xml b/app/src/main/res/drawable-v21/ratingbar.xml index 5c66e0e..fe14f96 100644 --- a/app/src/main/res/drawable-v21/ratingbar.xml +++ b/app/src/main/res/drawable-v21/ratingbar.xml @@ -18,17 +18,17 @@ + android:tint="?attr/rankingStarNotSelected" /> + android:tint="?attr/rankingStarNotSelected" /> + android:tint="?attr/colorAccent" /> diff --git a/app/src/main/res/drawable/ic_school_black_24dp.xml b/app/src/main/res/drawable/ic_school_black_24dp.xml index f8d18b2..7b73270 100644 --- a/app/src/main/res/drawable/ic_school_black_24dp.xml +++ b/app/src/main/res/drawable/ic_school_black_24dp.xml @@ -5,6 +5,6 @@ android:viewportWidth="24.0" android:viewportHeight="24.0"> \ No newline at end of file diff --git a/app/src/main/res/drawable/ic_star_black_48dp.xml b/app/src/main/res/drawable/ic_star_black_48dp.xml index 2e05e5a..810c836 100644 --- a/app/src/main/res/drawable/ic_star_black_48dp.xml +++ b/app/src/main/res/drawable/ic_star_black_48dp.xml @@ -4,7 +4,7 @@ android:viewportWidth="72" android:viewportHeight="72"> diff --git a/app/src/main/res/drawable/ic_star_blue_36dp.xml b/app/src/main/res/drawable/ic_star_blue_36dp.xml index bfe4ce8..06703cd 100644 --- a/app/src/main/res/drawable/ic_star_blue_36dp.xml +++ b/app/src/main/res/drawable/ic_star_blue_36dp.xml @@ -4,7 +4,7 @@ android:viewportWidth="54" android:viewportHeight="54"> diff --git a/app/src/main/res/drawable/ic_star_grey_36dp.xml b/app/src/main/res/drawable/ic_star_grey_36dp.xml index 669fdd5..456adf1 100644 --- a/app/src/main/res/drawable/ic_star_grey_36dp.xml +++ b/app/src/main/res/drawable/ic_star_grey_36dp.xml @@ -4,7 +4,7 @@ android:viewportWidth="54" android:viewportHeight="54"> diff --git a/app/src/main/res/drawable/ic_star_half_black_48dp.xml b/app/src/main/res/drawable/ic_star_half_black_48dp.xml index ec694fb..1a29044 100644 --- a/app/src/main/res/drawable/ic_star_half_black_48dp.xml +++ b/app/src/main/res/drawable/ic_star_half_black_48dp.xml @@ -4,7 +4,7 @@ android:viewportWidth="72" android:viewportHeight="72"> diff --git a/app/src/main/res/drawable/ic_trophy_award_black_48dp.xml b/app/src/main/res/drawable/ic_trophy_award_black_48dp.xml index 74a9a54..8dfe2b4 100644 --- a/app/src/main/res/drawable/ic_trophy_award_black_48dp.xml +++ b/app/src/main/res/drawable/ic_trophy_award_black_48dp.xml @@ -4,7 +4,7 @@ android:viewportWidth="192" android:viewportHeight="192"> diff --git a/app/src/main/res/drawable/ic_trophy_black_48dp.xml b/app/src/main/res/drawable/ic_trophy_black_48dp.xml index a9ae9d0..844b657 100644 --- a/app/src/main/res/drawable/ic_trophy_black_48dp.xml +++ b/app/src/main/res/drawable/ic_trophy_black_48dp.xml @@ -4,7 +4,7 @@ android:viewportWidth="192" android:viewportHeight="192"> diff --git a/app/src/main/res/drawable/ic_undo_black_48dp.xml b/app/src/main/res/drawable/ic_undo_black_48dp.xml index 43df107..cd95195 100644 --- a/app/src/main/res/drawable/ic_undo_black_48dp.xml +++ b/app/src/main/res/drawable/ic_undo_black_48dp.xml @@ -5,6 +5,6 @@ android:viewportHeight="192"> + android:fillColor="?attr/standardVectorGraphic" + android:strokeColor="?attr/standardVectorGraphic"/> diff --git a/app/src/main/res/drawable/inactive_button.xml b/app/src/main/res/drawable/inactive_button.xml index 523ab80..959e81a 100644 --- a/app/src/main/res/drawable/inactive_button.xml +++ b/app/src/main/res/drawable/inactive_button.xml @@ -4,7 +4,7 @@ + android:color="?attr/inactiveButtonColor" /> diff --git a/app/src/main/res/drawable/mnenomic_numpad_button.xml b/app/src/main/res/drawable/mnenomic_numpad_button.xml index 12c4d14..af4c22e 100644 --- a/app/src/main/res/drawable/mnenomic_numpad_button.xml +++ b/app/src/main/res/drawable/mnenomic_numpad_button.xml @@ -1,5 +1,5 @@ - + diff --git a/app/src/main/res/drawable/numpad_highlighted.xml b/app/src/main/res/drawable/numpad_highlighted.xml index 7af2c1a..2c00338 100644 --- a/app/src/main/res/drawable/numpad_highlighted.xml +++ b/app/src/main/res/drawable/numpad_highlighted.xml @@ -2,10 +2,10 @@ + android:endColor="?attr/activeButtonColor" + android:startColor="?attr/activeButtonColor" /> + android:color="?attr/colorPrimaryDark" /> \ No newline at end of file diff --git a/app/src/main/res/drawable/numpad_highlighted_four.xml b/app/src/main/res/drawable/numpad_highlighted_four.xml index 8b8e766..87ce8d9 100644 --- a/app/src/main/res/drawable/numpad_highlighted_four.xml +++ b/app/src/main/res/drawable/numpad_highlighted_four.xml @@ -2,10 +2,10 @@ + android:endColor="?attr/activeButtonColor" + android:startColor="?attr/activeButtonColor" /> + android:color="?attr/standardVectorGraphic" /> \ No newline at end of file diff --git a/app/src/main/res/drawable/numpad_highlighted_three.xml b/app/src/main/res/drawable/numpad_highlighted_three.xml index fe0f0cf..05aa808 100644 --- a/app/src/main/res/drawable/numpad_highlighted_three.xml +++ b/app/src/main/res/drawable/numpad_highlighted_three.xml @@ -2,10 +2,10 @@ + android:endColor="?attr/activeButtonColor" + android:startColor="?attr/activeButtonColor" /> + android:color="?attr/highlightedButtonBorder" /> \ No newline at end of file diff --git a/app/src/main/res/drawable/splash_screen.xml b/app/src/main/res/drawable/splash_screen.xml index cfb80f8..0088edb 100644 --- a/app/src/main/res/drawable/splash_screen.xml +++ b/app/src/main/res/drawable/splash_screen.xml @@ -1,7 +1,7 @@ + android:drawable="?attr/colorAccent"/> + android:color="?attr/colorPrimary" /> diff --git a/app/src/main/res/values/attrs.xml b/app/src/main/res/values/attrs.xml index 6dbe1d6..944bb90 100644 --- a/app/src/main/res/values/attrs.xml +++ b/app/src/main/res/values/attrs.xml @@ -6,5 +6,10 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index d5042f9..327f1b0 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -11,6 +11,11 @@ @color/black @color/middleblue @color/transparent + @color/lightblue + @color/middlegrey + @color/lightblue + @color/middlegrey + @color/yellow @style/ToolbarStyle