[PM-21575] Migrate AppTheme enum class to ui module (#5182)

This commit is contained in:
Patrick Honkonen
2025-05-14 13:53:02 -04:00
committed by GitHub
parent ea70191429
commit 7d6b6a5959
39 changed files with 42 additions and 53 deletions

View File

@@ -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),
}