Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed Issue #602:Add auto dark theme
- Loading branch information
Mohit Mandalia
authored and
Mohit Mandalia
committed
Mar 26, 2022
1 parent
5b89814
commit 83d50db
Showing
6 changed files
with
13 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
package com.ivy.design.l0_system | ||
|
||
enum class Theme { | ||
LIGHT, DARK; | ||
LIGHT, DARK, AUTO; | ||
|
||
fun inverted(): Theme { | ||
return when (this) { | ||
LIGHT -> DARK | ||
DARK -> LIGHT | ||
AUTO -> AUTO | ||
} | ||
} | ||
} |