mirror of
https://github.com/cmclark00/mintris.git
synced 2025-05-18 10:25:19 +01:00
start adding theme support to full app.
This commit is contained in:
parent
ed7847ad70
commit
ae5ad1ed03
2 changed files with 46 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue