-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove viewModel and load theme from root presenter.
- Loading branch information
1 parent
43f78c3
commit ec96967
Showing
5 changed files
with
50 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 0 additions & 34 deletions
34
app/src/main/kotlin/com/thomaskioko/tvmaniac/MainActivityViewModel.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
navigation/src/commonMain/kotlin/com/thomaskioko/tvmaniac/navigation/ThemeState.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.thomaskioko.tvmaniac.navigation | ||
|
||
import com.thomaskioko.tvmaniac.datastore.api.Theme | ||
|
||
sealed interface ThemeState | ||
|
||
data object Loading : ThemeState | ||
data class ThemeLoaded( | ||
val theme: Theme = Theme.SYSTEM, | ||
) : ThemeState |