mirror of
https://github.com/mihonapp/mihon.git
synced 2024-12-24 18:08:24 +01:00
Fix unreadable sheet tab text in light blue theme
This commit is contained in:
parent
33660de6b1
commit
9f2fe33ce0
@ -394,13 +394,13 @@ open class BrowseSourceController(bundle: Bundle) :
|
|||||||
val actions = emptyList<EmptyView.Action>().toMutableList()
|
val actions = emptyList<EmptyView.Action>().toMutableList()
|
||||||
|
|
||||||
if (presenter.source is LocalSource) {
|
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 {
|
} else {
|
||||||
actions += EmptyView.Action(R.string.action_retry, retryAction)
|
actions += EmptyView.Action(R.string.action_retry, retryAction)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (presenter.source is HttpSource) {
|
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)
|
binding.emptyView.show(message, actions)
|
||||||
|
10
app/src/main/res/color/tabs_selector_background.xml
Normal file
10
app/src/main/res/color/tabs_selector_background.xml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
Based on mtrl_tabs_icon_color_selector_colored.
|
||||||
|
|
||||||
|
Ensures visibility on top of the background color.
|
||||||
|
-->
|
||||||
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item android:color="?attr/colorOnBackground" android:state_selected="true"/>
|
||||||
|
<item android:alpha="0.60" android:color="?attr/colorOnBackground"/>
|
||||||
|
</selector>
|
@ -21,6 +21,7 @@
|
|||||||
app:layout_constraintEnd_toStartOf="@+id/menu"
|
app:layout_constraintEnd_toStartOf="@+id/menu"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
app:tabTextColor="@color/tabs_selector_background"
|
||||||
app:tabGravity="fill"
|
app:tabGravity="fill"
|
||||||
app:tabMode="fixed" />
|
app:tabMode="fixed" />
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user