Bug 1807080 - Fix PTR dark theme colors

Co-authored-by: Jonathan Almeida <git@jonalmeida.com>
fenix/124.1.0
Titouan Thibaud 4 months ago committed by mergify[bot]
parent 9c687b88c9
commit 13adc68342

@ -942,9 +942,12 @@ abstract class BaseBrowserFragment :
binding.swipeRefresh.isEnabled = shouldPullToRefreshBeEnabled(false)
if (binding.swipeRefresh.isEnabled) {
val primaryTextColor =
ThemeManager.resolveAttribute(R.attr.textPrimary, context)
binding.swipeRefresh.setColorSchemeColors(primaryTextColor)
val primaryTextColor = ThemeManager.resolveAttribute(R.attr.textPrimary, context)
val primaryBackgroundColor = ThemeManager.resolveAttribute(R.attr.layer2, context)
binding.swipeRefresh.apply {
setColorSchemeResources(primaryTextColor)
setProgressBackgroundColorSchemeResource(primaryBackgroundColor)
}
swipeRefreshFeature.set(
feature = SwipeRefreshFeature(
requireComponents.core.store,

Loading…
Cancel
Save