forked from upstream-mirrors/quik
Compose view respects dark mode
This commit is contained in:
@@ -12,6 +12,7 @@ import com.jakewharton.rxbinding2.view.clicks
|
||||
import com.jakewharton.rxbinding2.widget.textChanges
|
||||
import com.moez.QKSMS.R
|
||||
import com.moez.QKSMS.common.di.appComponent
|
||||
import com.moez.QKSMS.common.util.extensions.setBackgroundTint
|
||||
import com.moez.QKSMS.common.util.extensions.setVisible
|
||||
import com.moez.QKSMS.common.util.extensions.showKeyboard
|
||||
import com.moez.QKSMS.data.model.Contact
|
||||
@@ -91,6 +92,9 @@ class ComposeActivity : QkActivity<ComposeViewModel>(), ComposeView {
|
||||
disposables += colors.composeBackground
|
||||
.subscribe { color -> window.decorView.setBackgroundColor(color) }
|
||||
|
||||
disposables += colors.bubble
|
||||
.subscribe { color -> message.setBackgroundTint(color) }
|
||||
|
||||
window.callback = ComposeWindowCallback(window.callback, this)
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
@@ -76,7 +77,8 @@
|
||||
android:paddingBottom="8dp"
|
||||
android:paddingLeft="12dp"
|
||||
android:paddingRight="12dp"
|
||||
android:paddingTop="8dp" />
|
||||
android:paddingTop="8dp"
|
||||
app:textColorHint="tertiary" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/send"
|
||||
|
||||
Reference in New Issue
Block a user