Separators respect dark mode

This commit is contained in:
Moez Bhatti
2017-12-05 19:44:03 -05:00
parent 90e7678c70
commit 6f2b0c4ac4
9 changed files with 57 additions and 20 deletions
@@ -4,13 +4,13 @@
<item>
<shape android:shape="rectangle">
<solid android:color="@color/white" />
<corners android:radius="16dp" />
<corners android:radius="18dp" />
</shape>
</item>
<item>
<shape
android:shape="rectangle">
<solid android:color="@color/listSeparator"/>
<solid android:color="@color/separatorLight"/>
<corners android:radius="18dp"/>
</shape>
</item>
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="@color/listSeparator" />
<solid android:color="@color/separatorLight" />
<corners android:radius="4dp" />
</shape>
@@ -43,10 +43,9 @@
</FrameLayout>
<View
<com.moez.QKSMS.presentation.view.Separator
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/listSeparator" />
android:layout_height="1dp" />
<LinearLayout
android:id="@+id/composeBar"
+2 -3
View File
@@ -66,12 +66,11 @@
</LinearLayout>
<View
<com.moez.QKSMS.presentation.view.Separator
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginBottom="8dp"
android:layout_marginTop="8dp"
android:background="@color/listSeparator" />
android:layout_marginTop="8dp" />
<LinearLayout
android:id="@+id/settings"
+3 -1
View File
@@ -16,7 +16,9 @@
<color name="backgroundLight">#F2F2F2</color>
<color name="backgroundDark">#212121</color>
<color name="listSeparator">#F2F2F2</color>
<color name="separatorLight">#F2F2F2</color>
<color name="separatorDark">#333333</color>
<color name="rowSelected">#F5F5F5</color>
<color name="switchThumbEnabledLight">#ECECEC</color>