(cherry picked from commit 1d10d29fa94f3c22a6e59861c4e1951cdd11dd18) # Conflicts: # app/src/main/java/eu/kanade/tachiyomi/ui/more/AboutController.kt
20 lines
652 B
Kotlin
20 lines
652 B
Kotlin
package eu.kanade.tachiyomi.widget
|
|
|
|
import android.content.Context
|
|
import android.util.AttributeSet
|
|
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
|
import eu.kanade.tachiyomi.R
|
|
import eu.kanade.tachiyomi.util.system.getThemeColor
|
|
|
|
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))
|
|
}
|
|
}
|