VERY experimental Nintendo Switch 2 emulator
C++
android: New swipe to refresh color scheme
Charles Lombardo0caa22819050
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/platform/PlatformGamesFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/platform/PlatformGamesFragment.ktindex 42b61a81a4..73929e186b 100644--- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/platform/PlatformGamesFragment.kt+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/platform/PlatformGamesFragment.kt@@ -17,10 +17,10 @@ import androidx.fragment.app.Fragmentimport androidx.recyclerview.widget.GridLayoutManagerimport androidx.recyclerview.widget.RecyclerViewimport androidx.swiperefreshlayout.widget.SwipeRefreshLayout+import com.google.android.material.color.MaterialColorsimport org.yuzu.yuzu_emu.Rimport org.yuzu.yuzu_emu.YuzuApplicationimport org.yuzu.yuzu_emu.adapters.GameAdapter-import org.yuzu.yuzu_emu.utils.InsetsHelperclass PlatformGamesFragment : Fragment(), PlatformGamesView {private val presenter = PlatformGamesPresenter(this)@@ -70,6 +70,14 @@ class PlatformGamesFragment : Fragment(), PlatformGamesView {pullToRefresh.isRefreshing = false}+ // Set theme color to the refresh animation's background+ pullToRefresh.setProgressBackgroundColorSchemeColor(+ MaterialColors.getColor(pullToRefresh, R.attr.colorPrimary)+ )+ pullToRefresh.setColorSchemeColors(+ MaterialColors.getColor(pullToRefresh, R.attr.colorOnPrimary)+ )+setInsets()}