fix(theme): disable dynamic colors by default to preserve curated preset aesthetics (#1054)
This commit is contained in:
6 files changed
+7
-7
No files matched your search
@@ -55,7 +55,7 @@ class ServerStoreMigration(
|
||||
runCatching { ThemePreference.valueOf(themePrefString!!) }
|
||||
.getOrDefault(ThemePreference.SYSTEM)
|
||||
|
||||
val useDynamicColors = prefs.getBoolean("use_dynamic_colors", true)
|
||||
val useDynamicColors = prefs.getBoolean("use_dynamic_colors", false)
|
||||
|
||||
val themePresetString = prefs.getString("theme_preset", ThemePreset.DEFAULT.name)
|
||||
val themePreset =
|
||||
|
||||
@@ -13,7 +13,7 @@ data class ServerStoreState(
|
||||
val baseUrl: String? = null,
|
||||
val autoReconnect: Boolean = true,
|
||||
val themePreference: ThemePreference = ThemePreference.SYSTEM,
|
||||
val useDynamicColors: Boolean = true,
|
||||
val useDynamicColors: Boolean = false,
|
||||
val themePreset: ThemePreset = ThemePreset.DEFAULT,
|
||||
val connectionProfiles: List<ConnectionProfile> = emptyList(),
|
||||
val selectedProfileId: String? = null,
|
||||
|
||||
@@ -68,7 +68,7 @@ object AuthManager {
|
||||
private val _themePreferenceFlow = MutableStateFlow<ThemePreference>(ThemePreference.SYSTEM)
|
||||
val themePreferenceFlow: StateFlow<ThemePreference> = _themePreferenceFlow.asStateFlow()
|
||||
|
||||
private val _useDynamicColorsFlow = MutableStateFlow<Boolean>(true)
|
||||
private val _useDynamicColorsFlow = MutableStateFlow<Boolean>(false)
|
||||
val useDynamicColorsFlow: StateFlow<Boolean> = _useDynamicColorsFlow.asStateFlow()
|
||||
|
||||
private val _themePresetFlow = MutableStateFlow<ThemePreset>(ThemePreset.DEFAULT)
|
||||
|
||||
Reference in new issue
Block a user