Initial commit
[GitHub/Stricted/android_vendor_extra.git] / packages / apps / Settings / 0004-Settings-Expose-gesture-settings-switchbar.patch
1 From f4e4000d09321bf4425201b039d5c2054d2fadad Mon Sep 17 00:00:00 2001
2 From: daveyannihilation <daveyannihilation@hotmail.com>
3 Date: Fri, 25 Nov 2016 15:20:04 -0700
4 Subject: [PATCH 04/15] Settings: Expose gesture settings switchbar
5
6 In Settings > Gestures, there is a hardcoded white background above each switch. Link to a colors.xml value instead.
7
8 Commit written by @nathanchance, idea by @daveyannihilation
9
10 Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
11 Change-Id: I9857c10ee4e54d27ca1287c80a7d8e420adc9a61
12 ---
13 res/layout/gesture_preference.xml | 2 +-
14 res/values/projekt_colors.xml | 3 +++
15 2 files changed, 4 insertions(+), 1 deletion(-)
16
17 diff --git a/res/layout/gesture_preference.xml b/res/layout/gesture_preference.xml
18 index ccbc42a..9fcd14f 100644
19 --- a/res/layout/gesture_preference.xml
20 +++ b/res/layout/gesture_preference.xml
21 @@ -31,7 +31,7 @@
22 android:paddingBottom="16dp"
23 android:paddingStart="?android:attr/listPreferredItemPaddingStart"
24 android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
25 - android:background="@android:color/white">
26 + android:background="@color/gestures_switchbar_color">
27
28 <TextView
29 android:id="@android:id/title"
30 diff --git a/res/values/projekt_colors.xml b/res/values/projekt_colors.xml
31 index fb0d99e..00252332 100644
32 --- a/res/values/projekt_colors.xml
33 +++ b/res/values/projekt_colors.xml
34 @@ -29,4 +29,7 @@
35 <color name="condition_card_second_button_text_color">@*android:color/primary_text_default_material_dark</color>
36 <!-- Storage Summary Title -->
37 <color name="storage_summary_title_color">@*android:color/accent_device_default_light</color>
38 + <!-- Gesture settings switchbar background -->
39 + <color name="gestures_switchbar_color">@android:color/white</color>
40 +
41 </resources>
42 --
43 2.9.3
44