forked from thunderbird/thunderbird-android
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
ThemeManager
interface to start decoupling
- Loading branch information
Showing
2 changed files
with
36 additions
and
11 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
core/ui/theme/api/src/main/kotlin/app/k9mail/core/ui/theme/api/ThemeManager.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 app.k9mail.core.ui.theme.api | ||
|
||
import androidx.annotation.StyleRes | ||
|
||
interface ThemeManager { | ||
|
||
val appTheme: Theme | ||
val messageViewTheme: Theme | ||
val messageComposeTheme: Theme | ||
|
||
@get:StyleRes | ||
val appThemeResourceId: Int | ||
|
||
@get:StyleRes | ||
val messageViewThemeResourceId: Int | ||
|
||
@get:StyleRes | ||
val messageComposeThemeResourceId: Int | ||
|
||
@get:StyleRes | ||
val dialogThemeResourceId: Int | ||
|
||
@get:StyleRes | ||
val translucentDialogThemeResourceId: Int | ||
} |
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