mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-19 01:59:19 +01:00
Fix checked state for manga header buttons
This commit is contained in:
parent
8ef548032f
commit
8ba426350f
5
app/src/main/res/color/outlined_button_bg.xml
Normal file
5
app/src/main/res/color/outlined_button_bg.xml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item android:alpha="0.25" android:color="?attr/colorAccent" android:state_checked="true" />
|
||||||
|
<item android:color="@android:color/transparent" android:state_checked="false" />
|
||||||
|
</selector>
|
4
app/src/main/res/color/outlined_button_stroke.xml
Normal file
4
app/src/main/res/color/outlined_button_stroke.xml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item android:alpha="0.12" android:color="?attr/colorOnSurface" />
|
||||||
|
</selector>
|
@ -128,6 +128,7 @@
|
|||||||
style="@style/Theme.Widget.Button.Icon"
|
style="@style/Theme.Widget.Button.Icon"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:checkable="true"
|
||||||
android:text="@string/add_to_library"
|
android:text="@string/add_to_library"
|
||||||
app:icon="@drawable/ic_favorite_border_24dp" />
|
app:icon="@drawable/ic_favorite_border_24dp" />
|
||||||
|
|
||||||
@ -137,6 +138,7 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="8dp"
|
android:layout_marginStart="8dp"
|
||||||
|
android:checkable="true"
|
||||||
android:text="@string/manga_tracking_tab"
|
android:text="@string/manga_tracking_tab"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
app:icon="@drawable/ic_sync_24dp"
|
app:icon="@drawable/ic_sync_24dp"
|
||||||
|
@ -264,9 +264,12 @@
|
|||||||
<item name="textAllCaps">false</item>
|
<item name="textAllCaps">false</item>
|
||||||
<item name="cornerRadius">16dp</item>
|
<item name="cornerRadius">16dp</item>
|
||||||
|
|
||||||
<item name="iconTint">?colorAccent</item>
|
<item name="iconTint">?attr/colorAccent</item>
|
||||||
<item name="rippleColor">?colorAccent</item>
|
<item name="rippleColor">?attr/colorAccent</item>
|
||||||
<item name="android:textColor">?attr/colorOnBackground</item>
|
<item name="android:textColor">?attr/colorOnBackground</item>
|
||||||
|
|
||||||
|
<item name="backgroundTint">@color/outlined_button_bg</item>
|
||||||
|
<item name="strokeColor">@color/outlined_button_stroke</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="Theme.Widget.Button.Icon.Textless">
|
<style name="Theme.Widget.Button.Icon.Textless">
|
||||||
|
Loading…
Reference in New Issue
Block a user