-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
580 additions
and
11 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
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
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
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
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
25 changes: 25 additions & 0 deletions
25
app/src/main/java/com/hefengbao/jingmo/data/repository/settings/ThemeRepository.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,25 @@ | ||
package com.hefengbao.jingmo.data.repository.settings | ||
|
||
import com.hefengbao.jingmo.data.model.AppStatus | ||
import com.hefengbao.jingmo.data.model.theme.DarkThemeConfig | ||
import com.hefengbao.jingmo.data.model.theme.ThemeBrand | ||
import kotlinx.coroutines.flow.Flow | ||
|
||
interface ThemeRepository { | ||
val appStatus: Flow<AppStatus> | ||
|
||
/** | ||
* Sets the desired theme brand. | ||
*/ | ||
suspend fun setThemeBrand(themeBrand: ThemeBrand) | ||
|
||
/** | ||
* Sets the desired dark theme config. | ||
*/ | ||
suspend fun setDarkThemeConfig(darkThemeConfig: DarkThemeConfig) | ||
|
||
/** | ||
* Sets the preferred dynamic color config. | ||
*/ | ||
suspend fun setDynamicColorPreference(useDynamicColor: Boolean) | ||
} |
Oops, something went wrong.