diff options
4 files changed, 15 insertions, 5 deletions
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsActivity.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsActivity.kt index ea3d47d82..b28750eee 100644 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsActivity.kt +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsActivity.kt | |||
| @@ -56,7 +56,10 @@ class SettingsActivity : AppCompatActivity(), SettingsActivityView { | |||
| 56 | if (InsetsHelper.getSystemGestureType(applicationContext) != InsetsHelper.GESTURE_NAVIGATION) { | 56 | if (InsetsHelper.getSystemGestureType(applicationContext) != InsetsHelper.GESTURE_NAVIGATION) { |
| 57 | binding.navigationBarShade.setBackgroundColor( | 57 | binding.navigationBarShade.setBackgroundColor( |
| 58 | ThemeHelper.getColorWithOpacity( | 58 | ThemeHelper.getColorWithOpacity( |
| 59 | MaterialColors.getColor(binding.navigationBarShade, R.attr.colorSurface), | 59 | MaterialColors.getColor( |
| 60 | binding.navigationBarShade, | ||
| 61 | com.google.android.material.R.attr.colorSurface | ||
| 62 | ), | ||
| 60 | ThemeHelper.SYSTEM_BAR_ALPHA | 63 | ThemeHelper.SYSTEM_BAR_ALPHA |
| 61 | ) | 64 | ) |
| 62 | ) | 65 | ) |
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/GamesFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/GamesFragment.kt index 0b4ae8744..07d0cd3d8 100644 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/GamesFragment.kt +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/GamesFragment.kt | |||
| @@ -64,10 +64,16 @@ class GamesFragment : Fragment() { | |||
| 64 | 64 | ||
| 65 | // Set theme color to the refresh animation's background | 65 | // Set theme color to the refresh animation's background |
| 66 | binding.swipeRefresh.setProgressBackgroundColorSchemeColor( | 66 | binding.swipeRefresh.setProgressBackgroundColorSchemeColor( |
| 67 | MaterialColors.getColor(binding.swipeRefresh, R.attr.colorPrimary) | 67 | MaterialColors.getColor( |
| 68 | binding.swipeRefresh, | ||
| 69 | com.google.android.material.R.attr.colorPrimary | ||
| 70 | ) | ||
| 68 | ) | 71 | ) |
| 69 | binding.swipeRefresh.setColorSchemeColors( | 72 | binding.swipeRefresh.setColorSchemeColors( |
| 70 | MaterialColors.getColor(binding.swipeRefresh, R.attr.colorOnPrimary) | 73 | MaterialColors.getColor( |
| 74 | binding.swipeRefresh, | ||
| 75 | com.google.android.material.R.attr.colorOnPrimary | ||
| 76 | ) | ||
| 71 | ) | 77 | ) |
| 72 | 78 | ||
| 73 | // Watch for when we get updates to any of our games lists | 79 | // Watch for when we get updates to any of our games lists |
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/MainActivity.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/MainActivity.kt index 8edf01fea..b2499168e 100644 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/MainActivity.kt +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/MainActivity.kt | |||
| @@ -72,7 +72,7 @@ class MainActivity : AppCompatActivity(), ThemeProvider { | |||
| 72 | ThemeHelper.getColorWithOpacity( | 72 | ThemeHelper.getColorWithOpacity( |
| 73 | MaterialColors.getColor( | 73 | MaterialColors.getColor( |
| 74 | binding.root, | 74 | binding.root, |
| 75 | R.attr.colorSurface | 75 | com.google.android.material.R.attr.colorSurface |
| 76 | ), | 76 | ), |
| 77 | ThemeHelper.SYSTEM_BAR_ALPHA | 77 | ThemeHelper.SYSTEM_BAR_ALPHA |
| 78 | ) | 78 | ) |
| @@ -82,7 +82,7 @@ class MainActivity : AppCompatActivity(), ThemeProvider { | |||
| 82 | ThemeHelper.getColorWithOpacity( | 82 | ThemeHelper.getColorWithOpacity( |
| 83 | MaterialColors.getColor( | 83 | MaterialColors.getColor( |
| 84 | binding.root, | 84 | binding.root, |
| 85 | R.attr.colorSurface | 85 | com.google.android.material.R.attr.colorSurface |
| 86 | ), | 86 | ), |
| 87 | ThemeHelper.SYSTEM_BAR_ALPHA | 87 | ThemeHelper.SYSTEM_BAR_ALPHA |
| 88 | ) | 88 | ) |
diff --git a/src/android/gradle.properties b/src/android/gradle.properties index 885e2af85..82b01e7d3 100644 --- a/src/android/gradle.properties +++ b/src/android/gradle.properties | |||
| @@ -11,3 +11,4 @@ android.useAndroidX=true | |||
| 11 | org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 | 11 | org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 |
| 12 | # Kotlin code style for this project: "official" or "obsolete": | 12 | # Kotlin code style for this project: "official" or "obsolete": |
| 13 | kotlin.code.style=official | 13 | kotlin.code.style=official |
| 14 | android.nonTransitiveRClass=true | ||