From 7cd944ffe7cbccd3835a086f61a3b94bddc8d3ac Mon Sep 17 00:00:00 2001 From: IndusAryan <125901294+IndusAryan@users.noreply.github.com> Date: Tue, 15 Aug 2023 17:28:14 +0530 Subject: [PATCH] feat: filled icon for home and new drag handle in navbar options dialog --- .../libretube/ui/adapters/NavBarOptionsAdapter.kt | 2 +- app/src/main/res/drawable/ic_drag_handle.xml | 8 ++++++++ app/src/main/res/drawable/ic_home_dark.xml | 10 ++++++++++ app/src/main/res/layout/nav_options_item.xml | 7 ++++--- 4 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 app/src/main/res/drawable/ic_drag_handle.xml create mode 100644 app/src/main/res/drawable/ic_home_dark.xml diff --git a/app/src/main/java/com/github/libretube/ui/adapters/NavBarOptionsAdapter.kt b/app/src/main/java/com/github/libretube/ui/adapters/NavBarOptionsAdapter.kt index f8ea9fe70..861b9ce16 100644 --- a/app/src/main/java/com/github/libretube/ui/adapters/NavBarOptionsAdapter.kt +++ b/app/src/main/java/com/github/libretube/ui/adapters/NavBarOptionsAdapter.kt @@ -30,7 +30,7 @@ class NavBarOptionsAdapter( title.text = item.title checkbox.isChecked = item.isVisible home.setImageResource( - if (item.itemId == selectedHomeTabId) R.drawable.ic_home else R.drawable.ic_home_outlined + if (item.itemId == selectedHomeTabId) R.drawable.ic_home_dark else R.drawable.ic_home_outlined ) home.setOnClickListener { if (selectedHomeTabId == item.itemId) { diff --git a/app/src/main/res/drawable/ic_drag_handle.xml b/app/src/main/res/drawable/ic_drag_handle.xml new file mode 100644 index 000000000..5caf6dfea --- /dev/null +++ b/app/src/main/res/drawable/ic_drag_handle.xml @@ -0,0 +1,8 @@ + + + diff --git a/app/src/main/res/drawable/ic_home_dark.xml b/app/src/main/res/drawable/ic_home_dark.xml new file mode 100644 index 000000000..7e3ff499f --- /dev/null +++ b/app/src/main/res/drawable/ic_home_dark.xml @@ -0,0 +1,10 @@ + + + + diff --git a/app/src/main/res/layout/nav_options_item.xml b/app/src/main/res/layout/nav_options_item.xml index 5f191adae..ac4710ced 100644 --- a/app/src/main/res/layout/nav_options_item.xml +++ b/app/src/main/res/layout/nav_options_item.xml @@ -17,7 +17,8 @@ android:layout_height="match_parent" android:background="?attr/selectableItemBackgroundBorderless" android:paddingHorizontal="10dp" - android:src="@drawable/ic_home_outlined" /> + android:src="@drawable/ic_home_outlined" + tools:ignore="ContentDescription" /> - \ No newline at end of file +