diff --git a/app/src/main/java/io/legado/app/lib/theme/TintHelper.kt b/app/src/main/java/io/legado/app/lib/theme/TintHelper.kt index b7b042ebc..c33d1e163 100644 --- a/app/src/main/java/io/legado/app/lib/theme/TintHelper.kt +++ b/app/src/main/java/io/legado/app/lib/theme/TintHelper.kt @@ -18,6 +18,7 @@ import androidx.core.content.ContextCompat import androidx.core.graphics.drawable.DrawableCompat import com.google.android.material.floatingactionbutton.FloatingActionButton import io.legado.app.R +import io.legado.app.utils.isNightTheme /** * @author afollestad, plusCubed @@ -127,7 +128,7 @@ object TintHelper { view: View, @ColorInt color: Int, isBackground: Boolean ) { - setTintAuto(view, color, isBackground, view.context.isDarkTheme) + setTintAuto(view, color, isBackground, view.context.isNightTheme) } fun setTintAuto( @@ -395,7 +396,11 @@ object TintHelper { if (switchView.trackDrawable != null) { switchView.trackDrawable = modifySwitchDrawable( switchView.context, - switchView.trackDrawable, color, false, false, useDarker + switchView.trackDrawable, + color, + thumb = false, + compatSwitch = false, + useDarker = useDarker ) } if (switchView.thumbDrawable != null) { diff --git a/app/src/main/res/layout/item_book_source.xml b/app/src/main/res/layout/item_book_source.xml index 53d171ab2..7d9513d98 100644 --- a/app/src/main/res/layout/item_book_source.xml +++ b/app/src/main/res/layout/item_book_source.xml @@ -15,7 +15,6 @@ android:layout_gravity="center" android:layout_weight="1" android:singleLine="true" - android:text="" android:textColor="@color/tv_text_default" /> -