From 9f2fe33ce0080f24f642a823119b0d842e63307a Mon Sep 17 00:00:00 2001 From: arkon Date: Thu, 4 Feb 2021 09:16:37 -0500 Subject: [PATCH] Fix unreadable sheet tab text in light blue theme --- .../ui/browse/source/browse/BrowseSourceController.kt | 4 ++-- app/src/main/res/color/tabs_selector_background.xml | 10 ++++++++++ app/src/main/res/layout/common_tabbed_sheet.xml | 1 + 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 app/src/main/res/color/tabs_selector_background.xml diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/browse/BrowseSourceController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/browse/BrowseSourceController.kt index cac1b850c..ee44251a1 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/browse/BrowseSourceController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/browse/BrowseSourceController.kt @@ -394,13 +394,13 @@ open class BrowseSourceController(bundle: Bundle) : val actions = emptyList().toMutableList() if (presenter.source is LocalSource) { - actions += EmptyView.Action(R.string.local_source_help_guide, View.OnClickListener { openLocalSourceHelpGuide() }) + actions += EmptyView.Action(R.string.local_source_help_guide) { openLocalSourceHelpGuide() } } else { actions += EmptyView.Action(R.string.action_retry, retryAction) } if (presenter.source is HttpSource) { - actions += EmptyView.Action(R.string.action_open_in_web_view, View.OnClickListener { openInWebView() }) + actions += EmptyView.Action(R.string.action_open_in_web_view) { openInWebView() } } binding.emptyView.show(message, actions) diff --git a/app/src/main/res/color/tabs_selector_background.xml b/app/src/main/res/color/tabs_selector_background.xml new file mode 100644 index 000000000..5444c2a70 --- /dev/null +++ b/app/src/main/res/color/tabs_selector_background.xml @@ -0,0 +1,10 @@ + + + + + + diff --git a/app/src/main/res/layout/common_tabbed_sheet.xml b/app/src/main/res/layout/common_tabbed_sheet.xml index b9cbde1d9..7ae742052 100644 --- a/app/src/main/res/layout/common_tabbed_sheet.xml +++ b/app/src/main/res/layout/common_tabbed_sheet.xml @@ -21,6 +21,7 @@ app:layout_constraintEnd_toStartOf="@+id/menu" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" + app:tabTextColor="@color/tabs_selector_background" app:tabGravity="fill" app:tabMode="fixed" />