From 526e029ebb140bf3d3804b04f60e97c8951111ff Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 13 Jun 2020 15:34:55 -0400 Subject: [PATCH] Update some themes --- .../main/java/eu/kanade/tachiyomi/util/view/ViewExtensions.kt | 4 ---- app/src/main/res/layout/download_custom_amount.xml | 2 +- app/src/main/res/values/styles.xml | 4 +++- app/src/main/res/values/themes.xml | 3 +++ 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/util/view/ViewExtensions.kt b/app/src/main/java/eu/kanade/tachiyomi/util/view/ViewExtensions.kt index eb3a909a41..8b94966b77 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/util/view/ViewExtensions.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/util/view/ViewExtensions.kt @@ -2,13 +2,11 @@ package eu.kanade.tachiyomi.util.view -import android.graphics.Color import android.graphics.Point import android.view.Gravity import android.view.Menu import android.view.MenuItem import android.view.View -import android.widget.TextView import androidx.annotation.MenuRes import androidx.appcompat.widget.PopupMenu import androidx.recyclerview.widget.RecyclerView @@ -35,8 +33,6 @@ fun View.getCoordinates() = Point((left + right) / 2, (top + bottom) / 2) */ inline fun View.snack(message: String, length: Int = Snackbar.LENGTH_LONG, f: Snackbar.() -> Unit = {}): Snackbar { val snack = Snackbar.make(this, message, length) - val textView: TextView = snack.view.findViewById(com.google.android.material.R.id.snackbar_text) - textView.setTextColor(Color.WHITE) snack.f() snack.show() return snack diff --git a/app/src/main/res/layout/download_custom_amount.xml b/app/src/main/res/layout/download_custom_amount.xml index d0877334ad..4d19941e80 100644 --- a/app/src/main/res/layout/download_custom_amount.xml +++ b/app/src/main/res/layout/download_custom_amount.xml @@ -24,7 +24,7 @@ android:tint="?attr/colorAccent" app:srcCompat="@drawable/ic_chevron_left_black_24dp" /> - @drawable/snackbar_bg - @style/TextAppearance.Widget.Menu 1 +