start adding theme support to full app.

This commit is contained in:
cmclark00 2025-03-27 23:27:15 -04:00
parent ed7847ad70
commit ae5ad1ed03
2 changed files with 46 additions and 0 deletions

View file

@ -491,6 +491,7 @@ class MainActivity : AppCompatActivity() {
binding.gameOverContainer.visibility = View.GONE
binding.pauseContainer.visibility = View.GONE
titleScreen.visibility = View.VISIBLE
titleScreen.applyTheme(currentTheme)
}
/**
@ -521,6 +522,11 @@ class MainActivity : AppCompatActivity() {
// Save the selected theme
currentTheme = themeId
saveThemePreference(themeId)
// Apply theme to title screen if it's visible
if (titleScreen.visibility == View.VISIBLE) {
titleScreen.applyTheme(themeId)
}
// Apply theme colors based on theme ID
when (themeId) {