|
@@ -80,6 +80,8 @@ data class ReadPreferences(
|
|
|
val readMenuBgColorNight: Int = 0,
|
|
val readMenuBgColorNight: Int = 0,
|
|
|
val readMenuAccentColorNight: Int = 0,
|
|
val readMenuAccentColorNight: Int = 0,
|
|
|
val readMenuContainerColorNight: Int = 0,
|
|
val readMenuContainerColorNight: Int = 0,
|
|
|
|
|
+ val readMenuTextColor: Int = 0,
|
|
|
|
|
+ val readMenuTextColorNight: Int = 0,
|
|
|
val readMenuColorMode: Int = 1,
|
|
val readMenuColorMode: Int = 1,
|
|
|
val readMenuIconShowText: Boolean = true,
|
|
val readMenuIconShowText: Boolean = true,
|
|
|
val readMenuIconStyle: Int = 0,
|
|
val readMenuIconStyle: Int = 0,
|
|
@@ -299,6 +301,12 @@ class ReadSettingsRepository(
|
|
|
suspend fun setReadMenuContainerColorNight(value: Int) =
|
|
suspend fun setReadMenuContainerColorNight(value: Int) =
|
|
|
settingsRepository.putInt(PreferKey.readMenuContainerColorNight, value)
|
|
settingsRepository.putInt(PreferKey.readMenuContainerColorNight, value)
|
|
|
|
|
|
|
|
|
|
+ suspend fun setReadMenuTextColor(value: Int) =
|
|
|
|
|
+ settingsRepository.putInt(PreferKey.readMenuTextColor, value)
|
|
|
|
|
+
|
|
|
|
|
+ suspend fun setReadMenuTextColorNight(value: Int) =
|
|
|
|
|
+ settingsRepository.putInt(PreferKey.readMenuTextColorNight, value)
|
|
|
|
|
+
|
|
|
suspend fun setReadMenuColorMode(value: Int) =
|
|
suspend fun setReadMenuColorMode(value: Int) =
|
|
|
settingsRepository.putInt(PreferKey.readMenuColorMode, value.coerceIn(0, 1))
|
|
settingsRepository.putInt(PreferKey.readMenuColorMode, value.coerceIn(0, 1))
|
|
|
|
|
|
|
@@ -461,6 +469,8 @@ class ReadSettingsRepository(
|
|
|
readMenuBgColorNight = this[Keys.ReadMenuBgColorNight] ?: 0,
|
|
readMenuBgColorNight = this[Keys.ReadMenuBgColorNight] ?: 0,
|
|
|
readMenuAccentColorNight = this[Keys.ReadMenuAccentColorNight] ?: 0,
|
|
readMenuAccentColorNight = this[Keys.ReadMenuAccentColorNight] ?: 0,
|
|
|
readMenuContainerColorNight = this[Keys.ReadMenuContainerColorNight] ?: 0,
|
|
readMenuContainerColorNight = this[Keys.ReadMenuContainerColorNight] ?: 0,
|
|
|
|
|
+ readMenuTextColor = this[Keys.ReadMenuTextColor] ?: 0,
|
|
|
|
|
+ readMenuTextColorNight = this[Keys.ReadMenuTextColorNight] ?: 0,
|
|
|
readMenuColorMode = this[Keys.ReadMenuColorMode] ?: 1,
|
|
readMenuColorMode = this[Keys.ReadMenuColorMode] ?: 1,
|
|
|
readMenuIconShowText = this[Keys.ReadMenuIconShowText] ?: true,
|
|
readMenuIconShowText = this[Keys.ReadMenuIconShowText] ?: true,
|
|
|
readMenuIconStyle = this[Keys.ReadMenuIconStyle] ?: 0,
|
|
readMenuIconStyle = this[Keys.ReadMenuIconStyle] ?: 0,
|
|
@@ -562,6 +572,8 @@ class ReadSettingsRepository(
|
|
|
val ReadMenuBgColorNight = intPreferencesKey(PreferKey.readMenuBgColorNight)
|
|
val ReadMenuBgColorNight = intPreferencesKey(PreferKey.readMenuBgColorNight)
|
|
|
val ReadMenuAccentColorNight = intPreferencesKey(PreferKey.readMenuAccentColorNight)
|
|
val ReadMenuAccentColorNight = intPreferencesKey(PreferKey.readMenuAccentColorNight)
|
|
|
val ReadMenuContainerColorNight = intPreferencesKey(PreferKey.readMenuContainerColorNight)
|
|
val ReadMenuContainerColorNight = intPreferencesKey(PreferKey.readMenuContainerColorNight)
|
|
|
|
|
+ val ReadMenuTextColor = intPreferencesKey(PreferKey.readMenuTextColor)
|
|
|
|
|
+ val ReadMenuTextColorNight = intPreferencesKey(PreferKey.readMenuTextColorNight)
|
|
|
val ReadMenuColorMode = intPreferencesKey(PreferKey.readMenuColorMode)
|
|
val ReadMenuColorMode = intPreferencesKey(PreferKey.readMenuColorMode)
|
|
|
val ReadMenuIconShowText = booleanPreferencesKey(PreferKey.readMenuIconShowText)
|
|
val ReadMenuIconShowText = booleanPreferencesKey(PreferKey.readMenuIconShowText)
|
|
|
val ReadMenuIconStyle = intPreferencesKey(PreferKey.readMenuIconStyle)
|
|
val ReadMenuIconStyle = intPreferencesKey(PreferKey.readMenuIconStyle)
|