mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-17 11:38:51 +01:00
#874 - Multi selection for conversations
This commit is contained in:
@@ -159,6 +159,15 @@ class Colors @Inject constructor(private val context: Context, private val prefs
|
||||
.map { res -> getColor(res) }
|
||||
.distinctUntilChanged()
|
||||
|
||||
val ripple: Observable<Int> = prefs.night.asObservable()
|
||||
.map { night ->
|
||||
when (night) {
|
||||
true -> R.drawable.ripple_dark
|
||||
false -> R.drawable.ripple
|
||||
}
|
||||
}
|
||||
.distinctUntilChanged()
|
||||
|
||||
val field: Observable<Int> = prefs.night.asObservable()
|
||||
.map { night -> if (night) R.color.fieldDark else R.color.fieldLight }
|
||||
.map { res -> getColor(res) }
|
||||
|
||||
Reference in New Issue
Block a user