Fix gradient behind compose bar, and message bubble color

This commit is contained in:
Moez Bhatti
2017-12-19 16:07:25 -05:00
parent 7569243c24
commit fcbbbac312
4 changed files with 16 additions and 2 deletions
@@ -124,7 +124,9 @@ class ComposeActivity : QkActivity<ComposeViewModel>(), ComposeView {
.subscribe { color -> messageBackground.setBackgroundTint(color) }
disposables += colors.composeBackground
.subscribe { color -> window.decorView.setBackgroundColor(color) }
.doOnNext { color -> composeBar.setBackgroundTint(color) }
.doOnNext { color -> window.decorView.setBackgroundColor(color) }
.subscribe()
window.callback = ComposeWindowCallback(window.callback, this)
}
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="90"
android:centerColor="#e5000000"
android:endColor="#00000000"
android:startColor="#e5000000" />
</shape>
@@ -49,6 +49,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:background="@drawable/compose_bar_background"
android:gravity="center_vertical">
<LinearLayout
+1 -1
View File
@@ -23,7 +23,7 @@
<color name="textTertiaryDark">#80ffffff</color>
<color name="bubbleLight">#FFFFFF</color>
<color name="bubbleDark">#0CFFFFFF</color>
<color name="bubbleDark">#242a2f</color>
<color name="separatorLight">#0C000000</color>
<color name="separatorDark">#0CFFFFFF</color>