Bug 1807080 - Fix PTR dark theme colors

Co-authored-by: Jonathan Almeida <git@jonalmeida.com>
(cherry picked from commit c6ed1d76995c7a0946dd8dfd8f089414f075726c)
fenix/123.0
Titouan Thibaud 3 months ago committed by mergify[bot]
parent 8984d81e48
commit c89cde5577

@ -916,9 +916,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