From 01dd46c5ed6897784373d9c2cdf42bf67473f4bc Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 19 Apr 2020 12:08:40 -0400 Subject: [PATCH] Remove unused widget styles and animations --- app/src/main/res/anim/enter_from_left.xml | 8 ------ app/src/main/res/anim/enter_from_right.xml | 8 ------ app/src/main/res/anim/exit_to_left.xml | 8 ------ app/src/main/res/anim/exit_to_right.xml | 8 ------ app/src/main/res/anim/fade_in.xml | 9 ------ ...r_amoled.xml => library_item_selector.xml} | 8 +++--- .../drawable/library_item_selector_dark.xml | 19 ------------- .../drawable/library_item_selector_light.xml | 19 ------------- app/src/main/res/layout/source_grid_item.xml | 2 +- app/src/main/res/values/attrs.xml | 3 +- app/src/main/res/values/ids.xml | 6 +--- app/src/main/res/values/styles.xml | 28 ------------------- app/src/main/res/values/themes.xml | 9 ++++-- 13 files changed, 14 insertions(+), 121 deletions(-) delete mode 100644 app/src/main/res/anim/enter_from_left.xml delete mode 100644 app/src/main/res/anim/enter_from_right.xml delete mode 100644 app/src/main/res/anim/exit_to_left.xml delete mode 100644 app/src/main/res/anim/exit_to_right.xml delete mode 100644 app/src/main/res/anim/fade_in.xml rename app/src/main/res/drawable/{library_item_selector_amoled.xml => library_item_selector.xml} (56%) delete mode 100644 app/src/main/res/drawable/library_item_selector_dark.xml delete mode 100644 app/src/main/res/drawable/library_item_selector_light.xml diff --git a/app/src/main/res/anim/enter_from_left.xml b/app/src/main/res/anim/enter_from_left.xml deleted file mode 100644 index 67f7b0f76a..0000000000 --- a/app/src/main/res/anim/enter_from_left.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - \ No newline at end of file diff --git a/app/src/main/res/anim/enter_from_right.xml b/app/src/main/res/anim/enter_from_right.xml deleted file mode 100644 index e5a91703ea..0000000000 --- a/app/src/main/res/anim/enter_from_right.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - \ No newline at end of file diff --git a/app/src/main/res/anim/exit_to_left.xml b/app/src/main/res/anim/exit_to_left.xml deleted file mode 100644 index b5d7eb0fcc..0000000000 --- a/app/src/main/res/anim/exit_to_left.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - \ No newline at end of file diff --git a/app/src/main/res/anim/exit_to_right.xml b/app/src/main/res/anim/exit_to_right.xml deleted file mode 100644 index c0f406cb01..0000000000 --- a/app/src/main/res/anim/exit_to_right.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - \ No newline at end of file diff --git a/app/src/main/res/anim/fade_in.xml b/app/src/main/res/anim/fade_in.xml deleted file mode 100644 index 79e511214b..0000000000 --- a/app/src/main/res/anim/fade_in.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - diff --git a/app/src/main/res/drawable/library_item_selector_amoled.xml b/app/src/main/res/drawable/library_item_selector.xml similarity index 56% rename from app/src/main/res/drawable/library_item_selector_amoled.xml rename to app/src/main/res/drawable/library_item_selector.xml index 18b0fb40eb..8dc63c3173 100644 --- a/app/src/main/res/drawable/library_item_selector_amoled.xml +++ b/app/src/main/res/drawable/library_item_selector.xml @@ -1,18 +1,18 @@ + android:color="?attr/colorLibrarySelection"> - + - + - + diff --git a/app/src/main/res/drawable/library_item_selector_dark.xml b/app/src/main/res/drawable/library_item_selector_dark.xml deleted file mode 100644 index 7e2dc8b749..0000000000 --- a/app/src/main/res/drawable/library_item_selector_dark.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/app/src/main/res/drawable/library_item_selector_light.xml b/app/src/main/res/drawable/library_item_selector_light.xml deleted file mode 100644 index e51877cc91..0000000000 --- a/app/src/main/res/drawable/library_item_selector_light.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/app/src/main/res/layout/source_grid_item.xml b/app/src/main/res/layout/source_grid_item.xml index 7620e861c2..03d2045be1 100644 --- a/app/src/main/res/layout/source_grid_item.xml +++ b/app/src/main/res/layout/source_grid_item.xml @@ -4,7 +4,7 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="wrap_content" - android:background="?selectable_library_drawable" + android:background="@drawable/library_item_selector" android:padding="4dp"> - + + diff --git a/app/src/main/res/values/ids.xml b/app/src/main/res/values/ids.xml index a28b6bb7ee..fa365dbbd1 100644 --- a/app/src/main/res/values/ids.xml +++ b/app/src/main/res/values/ids.xml @@ -1,8 +1,4 @@ - - - - - \ 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 566590ec62..b1fa2df606 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -172,14 +172,6 @@ - - - - - - - - - diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index dcd2636f54..26dee4eaa7 100644 --- a/app/src/main/res/values/themes.xml +++ b/app/src/main/res/values/themes.xml @@ -59,7 +59,8 @@ @style/TextAppearance.Widget.Menu - @drawable/library_item_selector_light + ?attr/colorAccent + @color/selectorColorLight @color/filterColorDark @@ -134,7 +135,8 @@ ?attr/colorSurface - @drawable/library_item_selector_dark + ?attr/colorAccent + @color/selectorColorDark @color/filterColorDark @@ -163,7 +165,8 @@ @color/colorAmoledPrimary - @drawable/library_item_selector_amoled + @color/selectorColorDark + @color/selectorColorDark