MotoActions: add material icons for Ambient Display
authorUtsavisGreat <utsavbalar1231@gmail.com>
Sun, 19 May 2019 05:51:37 +0000 (05:51 +0000)
committerNolen Johnson <johnsonnolen@gmail.com>
Tue, 5 Jan 2021 20:18:28 +0000 (21:18 +0100)
* Make follow system accents as well

Change-Id: I8ea63f82e079ba7868313c14e4973f9c1dd9789d
(cherry picked from commit c9999dacb17c2372be960a05789b603f827dad2b)

MotoActions/res/drawable/ic_hand.xml [new file with mode: 0644]
MotoActions/res/drawable/ic_pickup.xml [new file with mode: 0644]
MotoActions/res/xml/doze_panel.xml

diff --git a/MotoActions/res/drawable/ic_hand.xml b/MotoActions/res/drawable/ic_hand.xml
new file mode 100644 (file)
index 0000000..6d379fc
--- /dev/null
@@ -0,0 +1,9 @@
+<!-- drawable/ic_hand.xml -->
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+        android:height="24dp"
+        android:width="24dp"
+        android:viewportWidth="24"
+        android:viewportHeight="24"
+        android:tint="?android:attr/colorControlNormal" >
+        <path android:fillColor="#000" android:pathData="M6.58,19H14.58V22H6.58V19M19.74,11.6C19.55,11.4 19.29,11.28 19,11.28L18.78,11.31L15.58,13V11.83L16.09,2.9C16.12,2.35 15.7,1.87 15.15,1.84C14.6,1.81 14.12,2.23 14.09,2.78L13.82,7.47H13.58L12.54,7.58V2A1,1 0 0,0 11.54,1C11,1 10.54,1.45 10.54,2V8.41L9.72,8.78L9.03,3.32C8.96,2.77 8.46,2.38 7.91,2.45C7.36,2.5 6.97,3 7.04,3.57L7.81,9.63L7.43,9.8C7.3,9.85 7.18,9.93 7.07,10L5.97,6.11C5.81,5.54 5.25,5.2 4.71,5.34C4.18,5.5 3.88,6.08 4.04,6.65L6.61,15.77C6.61,15.8 6.63,15.84 6.64,15.87L6.67,16H6.68C6.9,16.57 7.47,17 8.08,17H14.58C14.97,17 15.32,16.84 15.58,16.57L20.5,12.37L19.74,11.6Z" />
+</vector>
diff --git a/MotoActions/res/drawable/ic_pickup.xml b/MotoActions/res/drawable/ic_pickup.xml
new file mode 100644 (file)
index 0000000..9a12665
--- /dev/null
@@ -0,0 +1,9 @@
+<!-- drawable/ic_pickup.xml -->
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+        android:height="24dp"
+        android:width="24dp"
+        android:viewportWidth="24"
+        android:viewportHeight="24"
+        android:tint="?android:attr/colorControlNormal" >
+        <path android:fillColor="#000" android:pathData="M9.64,13.4C8.63,12.5 7.34,12.03 6,12V15L2,11L6,7V10C7.67,10 9.3,10.57 10.63,11.59C10.22,12.15 9.89,12.76 9.64,13.4M18,15V12C17.5,12 13.5,12.16 13.05,16.2C14.61,16.75 15.43,18.47 14.88,20.03C14.33,21.59 12.61,22.41 11.05,21.86C9.5,21.3 8.67,19.59 9.22,18.03C9.5,17.17 10.2,16.5 11.05,16.2C11.34,12.61 14.4,9.88 18,10V7L22,11L18,15M13,19A1,1 0 0,0 12,18A1,1 0 0,0 11,19A1,1 0 0,0 12,20A1,1 0 0,0 13,19M11,11.12C11.58,10.46 12.25,9.89 13,9.43V5H16L12,1L8,5H11V11.12Z" />
+</vector>
index 8b21198f0f68e73cf2cf9354eb182687862837da..ca3221a736cf6597e0925fd8b8b3d88525717275 100644 (file)
 <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
         xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
 
-    <PreferenceCategory
-        android:key="ambient_display_key"
-        android:title="@string/ambient_display_title">
-
-        <SwitchPreference
-            android:key="gesture_pick_up"
-            android:defaultValue="true"
-            android:title="@string/pick_up_gesture_title"
-            android:summary="@string/pick_up_gesture_summary" />
-
-        <SwitchPreference
-            android:key="gesture_hand_wave"
-            android:defaultValue="true"
-            android:title="@string/hand_wave_gesture_title"
-            android:summary="@string/hand_wave_gesture_summary" />
-    </PreferenceCategory>
+    <SwitchPreference
+        android:key="gesture_pick_up"
+        android:defaultValue="false"
+        android:title="@string/pick_up_gesture_title"
+        android:summary="@string/pick_up_gesture_summary"
+        android:icon="@drawable/ic_pickup" />
 
+    <SwitchPreference
+        android:key="gesture_hand_wave"
+        android:defaultValue="false"
+        android:title="@string/hand_wave_gesture_title"
+        android:summary="@string/hand_wave_gesture_summary"
+        android:icon="@drawable/ic_hand" />
 </PreferenceScreen>