From 333c035fede73d0baca6550d8ce020ffb28f877c Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 28 Aug 2021 17:22:41 -0400 Subject: [PATCH] Clean up reader action sheet layout --- .../tachiyomi/ui/reader/ReaderPageSheet.kt | 6 +- app/src/main/res/layout/reader_page_sheet.xml | 87 ++++++------------- 2 files changed, 30 insertions(+), 63 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderPageSheet.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderPageSheet.kt index e47ac8a9f7..f5a5d87e5f 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderPageSheet.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderPageSheet.kt @@ -22,9 +22,9 @@ class ReaderPageSheet( override fun createView(inflater: LayoutInflater): View { binding = ReaderPageSheetBinding.inflate(activity.layoutInflater, null, false) - binding.setAsCoverLayout.setOnClickListener { setAsCover() } - binding.shareLayout.setOnClickListener { share() } - binding.saveLayout.setOnClickListener { save() } + binding.setAsCover.setOnClickListener { setAsCover() } + binding.share.setOnClickListener { share() } + binding.save.setOnClickListener { save() } return binding.root } diff --git a/app/src/main/res/layout/reader_page_sheet.xml b/app/src/main/res/layout/reader_page_sheet.xml index 85971e1bde..ab581a65f8 100644 --- a/app/src/main/res/layout/reader_page_sheet.xml +++ b/app/src/main/res/layout/reader_page_sheet.xml @@ -5,82 +5,49 @@ android:layout_height="wrap_content" android:orientation="vertical"> - + android:text="@string/set_as_cover" + android:textColor="?attr/colorOnBackground" + app:drawableStartCompat="@drawable/ic_photo_24dp" + app:drawableTint="?attr/colorOnBackground" /> - - - - - - - + android:text="@string/action_share" + android:textColor="?attr/colorOnBackground" + app:drawableStartCompat="@drawable/ic_share_24dp" + app:drawableTint="?attr/colorOnBackground" /> - - - - - - - - - - - - - + android:text="@string/action_save" + android:textColor="?attr/colorOnBackground" + app:drawableStartCompat="@drawable/ic_save_24dp" + app:drawableTint="?attr/colorOnBackground" />