Clean up and add unit test on Theme.isDark()
This commit is contained in:
parent
8e88c20a1d
commit
25c3fed1b1
2 changed files with 74 additions and 2 deletions
|
|
@ -18,8 +18,6 @@ enum class Theme {
|
|||
Light,
|
||||
}
|
||||
|
||||
val themes = listOf(Theme.System, Theme.Dark, Theme.Light)
|
||||
|
||||
@Composable
|
||||
fun Theme.isDark(): Boolean {
|
||||
return when (this) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue