From e3000073ee3ced9416f6b06cb09e220519e8a692 Mon Sep 17 00:00:00 2001 From: jhenrique09 Date: Wed, 11 Sep 2019 18:10:23 -0300 Subject: sdm660-common: doze: Follow Android 10 changes on switchbar Change-Id: Ifad28dc874233eb41d89580895b769ecbc3ea670 --- .../res/color-night/switchbar_switch_thumb_tint.xml | 20 ++++++++++++++++++++ .../res/color-night/switchbar_switch_track_tint.xml | 21 +++++++++++++++++++++ doze/res/color/switch_bar_bg.xml | 2 +- doze/res/layout/switch_bar.xml | 6 +++--- 4 files changed, 45 insertions(+), 4 deletions(-) create mode 100644 doze/res/color-night/switchbar_switch_thumb_tint.xml create mode 100644 doze/res/color-night/switchbar_switch_track_tint.xml (limited to 'doze') diff --git a/doze/res/color-night/switchbar_switch_thumb_tint.xml b/doze/res/color-night/switchbar_switch_thumb_tint.xml new file mode 100644 index 0000000..e3895a2 --- /dev/null +++ b/doze/res/color-night/switchbar_switch_thumb_tint.xml @@ -0,0 +1,20 @@ + + + + + + diff --git a/doze/res/color-night/switchbar_switch_track_tint.xml b/doze/res/color-night/switchbar_switch_track_tint.xml new file mode 100644 index 0000000..fcccbfc --- /dev/null +++ b/doze/res/color-night/switchbar_switch_track_tint.xml @@ -0,0 +1,21 @@ + + + + + + diff --git a/doze/res/color/switch_bar_bg.xml b/doze/res/color/switch_bar_bg.xml index ba2dae1..cae20c7 100644 --- a/doze/res/color/switch_bar_bg.xml +++ b/doze/res/color/switch_bar_bg.xml @@ -15,6 +15,6 @@ --> - + diff --git a/doze/res/layout/switch_bar.xml b/doze/res/layout/switch_bar.xml index 9e11a0a..3307ee1 100644 --- a/doze/res/layout/switch_bar.xml +++ b/doze/res/layout/switch_bar.xml @@ -32,9 +32,9 @@ android:paddingStart="56dp" android:maxLines="2" android:ellipsize="end" - android:textAppearance="@android:style/TextAppearance.Material.Title" - android:textColor="@android:color/white" - android:textSize="18sp" + android:textAppearance="@android:style/TextAppearance.DeviceDefault.Widget.ActionBar.Title" + android:textColor="?android:attr/textColorPrimaryInverse" + android:textSize="16sp" android:textAlignment="viewStart" />