mirror of
https://github.com/bitwarden/android.git
synced 2026-04-29 12:32:26 -05:00
[PM-21575] Migrate AppTheme enum class to ui module (#5182)
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
package com.bitwarden.ui.platform.feature.settings.appearance.model
|
||||
|
||||
import androidx.appcompat.app.AppCompatDelegate
|
||||
|
||||
/**
|
||||
* Represents the theme options the user can set.
|
||||
*
|
||||
* The [value] is used for consistent storage purposes.
|
||||
*/
|
||||
enum class AppTheme(val value: String?, val osValue: Int) {
|
||||
DEFAULT(value = null, osValue = AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM),
|
||||
DARK(value = "dark", osValue = AppCompatDelegate.MODE_NIGHT_YES),
|
||||
LIGHT(value = "light", osValue = AppCompatDelegate.MODE_NIGHT_NO),
|
||||
}
|
||||
Reference in New Issue
Block a user