932c92412c
* More themes cleanup * Tweak some things * Fix 'Clear History' icon * Split out ripple colored to its own drawable * Tidy up things * Unify background dim amount * Use primaryColor for Account login button * More colored ripples * use colorOnPrimary for selected comfortable library item title Co-authored-by: Soitora <simon.mattila@protonmail.com>
20 lines
653 B
Kotlin
20 lines
653 B
Kotlin
package eu.kanade.tachiyomi.widget
|
|
|
|
import android.content.Context
|
|
import android.util.AttributeSet
|
|
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
|
import com.mikepenz.aboutlibraries.util.getThemeColor
|
|
import eu.kanade.tachiyomi.R
|
|
|
|
class ThemedSwipeRefreshLayout @JvmOverloads constructor(
|
|
context: Context,
|
|
attrs: AttributeSet? = null
|
|
) : SwipeRefreshLayout(context, attrs) {
|
|
init {
|
|
// Background
|
|
setProgressBackgroundColorSchemeColor(context.getThemeColor(R.attr.colorPrimary))
|
|
// This updates the progress arrow color
|
|
setColorSchemeColors(context.getThemeColor(R.attr.colorOnPrimary))
|
|
}
|
|
}
|