summaryrefslogtreecommitdiff
path: root/doze/res/layout
diff options
context:
space:
mode:
authorBruno Martins <bgcngm@gmail.com>2020-01-18 19:04:13 +0000
committerMichael Bestas <mkbestas@lineageos.org>2020-12-20 18:54:58 +0200
commita4a4a9e4296bd8891d67f8bf4e362239772f9859 (patch)
treef40f1c24b8dc44beef302324ffe7063ff8e900eb /doze/res/layout
parentd601fba4350ec4c9ca2755068afd8e97c9b86cc6 (diff)
sdm660-common: doze: Fix dark theme issues
This brings SwitchBar widget inline with 10 and fixes the theme issues when the dark mode is enabled. Change-Id: I6909b77bc649eb9eb760bf01b46f66570363e9d9
Diffstat (limited to 'doze/res/layout')
-rw-r--r--doze/res/layout/switch_bar.xml5
1 files changed, 3 insertions, 2 deletions
diff --git a/doze/res/layout/switch_bar.xml b/doze/res/layout/switch_bar.xml
index 9e11a0a..1bf6f6c 100644
--- a/doze/res/layout/switch_bar.xml
+++ b/doze/res/layout/switch_bar.xml
@@ -22,7 +22,8 @@
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:clickable="true"
- android:gravity="center">
+ android:gravity="center"
+ android:theme="@*android:style/ThemeOverlay.DeviceDefault.Accent">
<TextView android:id="@+id/switch_text"
android:layout_height="wrap_content"
@@ -33,7 +34,7 @@
android:maxLines="2"
android:ellipsize="end"
android:textAppearance="@android:style/TextAppearance.Material.Title"
- android:textColor="@android:color/white"
+ android:textColor="?android:attr/textColorPrimaryInverse"
android:textSize="18sp"
android:textAlignment="viewStart" />