overlays: Add brightness slider styles [3/3]

Change-Id: I5ec57a37727a1d543bc102b84f1d8cfc2d85af3e
diff --git a/brightness/BrightnessSliderFilled/Android.bp b/brightness/BrightnessSliderFilled/Android.bp
new file mode 100644
index 0000000..8744348
--- /dev/null
+++ b/brightness/BrightnessSliderFilled/Android.bp
@@ -0,0 +1,10 @@
+//
+// Copyright (C) 2023 The Leaf Project
+//
+// SPDX-License-Identifier: Apache-2.0
+//
+runtime_resource_overlay {
+    name: "BrightnessSliderFilledOverlay",
+    theme: "BrightnessSliderFilled",
+    product_specific: true,
+}
diff --git a/brightness/BrightnessSliderFilled/AndroidManifest.xml b/brightness/BrightnessSliderFilled/AndroidManifest.xml
new file mode 100644
index 0000000..17f7de2
--- /dev/null
+++ b/brightness/BrightnessSliderFilled/AndroidManifest.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+     Copyright (C) 2023 The LeafOS Project
+     SPDX-License-Identifier: Apache-2.0
+-->
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+    package="com.android.systemui.brightness_slider.filled"
+    android:versionCode="1"
+    android:versionName="1.0">
+
+    <overlay
+        android:priority="1"
+        android:targetPackage="com.android.systemui" />
+
+    <application
+        android:hasCode="false"/>
+</manifest>
diff --git a/brightness/BrightnessSliderFilled/res/drawable-night/brightness_progress_drawable.xml b/brightness/BrightnessSliderFilled/res/drawable-night/brightness_progress_drawable.xml
new file mode 100644
index 0000000..6e316aa
--- /dev/null
+++ b/brightness/BrightnessSliderFilled/res/drawable-night/brightness_progress_drawable.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+     Copyright (C) 2023 The LeafOS Project
+     SPDX-License-Identifier: Apache-2.0
+-->
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+    <item android:id="@android:id/background" android:gravity="center_vertical|fill_horizontal">
+        <shape>
+            <size android:height="30.0dip" />
+            <corners android:radius="30.0dip" />
+            <solid android:color="@android:color/system_neutral1_800" />
+        </shape>
+    </item>
+    <item android:id="@android:id/progress" android:gravity="center_vertical|fill_horizontal">
+        <scale android:scaleWidth="100%">
+            <shape>
+                <size android:height="30.0dip" />
+                <solid android:color="?android:colorAccent" />
+                <corners android:radius="30.0dip" />
+            </shape>
+        </scale>
+    </item>
+</layer-list>
diff --git a/brightness/BrightnessSliderFilled/res/drawable/brightness_progress_drawable.xml b/brightness/BrightnessSliderFilled/res/drawable/brightness_progress_drawable.xml
new file mode 100644
index 0000000..c6e7ffc
--- /dev/null
+++ b/brightness/BrightnessSliderFilled/res/drawable/brightness_progress_drawable.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+     Copyright (C) 2023 The LeafOS Project
+     SPDX-License-Identifier: Apache-2.0
+-->
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+    <item android:id="@android:id/background" android:gravity="center_vertical|fill_horizontal">
+        <shape>
+            <size android:height="30.0dip" />
+            <corners android:radius="30.0dip" />
+            <solid android:color="@android:color/system_neutral1_50" />
+        </shape>
+    </item>
+    <item android:id="@android:id/progress" android:gravity="center_vertical|fill_horizontal">
+        <scale android:scaleWidth="100%">
+            <shape>
+                <size android:height="30.0dip" />
+                <solid android:color="?android:colorAccent" />
+                <corners android:radius="30.0dip" />
+            </shape>
+        </scale>
+    </item>
+</layer-list>
diff --git a/brightness/BrightnessSliderThin/Android.bp b/brightness/BrightnessSliderThin/Android.bp
new file mode 100644
index 0000000..afb476b
--- /dev/null
+++ b/brightness/BrightnessSliderThin/Android.bp
@@ -0,0 +1,10 @@
+//
+// Copyright (C) 2023 The Leaf Project
+//
+// SPDX-License-Identifier: Apache-2.0
+//
+runtime_resource_overlay {
+    name: "BrightnessSliderThinOverlay",
+    theme: "BrightnessSliderThin",
+    product_specific: true,
+}
diff --git a/brightness/BrightnessSliderThin/AndroidManifest.xml b/brightness/BrightnessSliderThin/AndroidManifest.xml
new file mode 100644
index 0000000..379a1dd
--- /dev/null
+++ b/brightness/BrightnessSliderThin/AndroidManifest.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+     Copyright (C) 2023 The LeafOS Project
+     SPDX-License-Identifier: Apache-2.0
+-->
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+    package="com.android.systemui.brightness_slider.thin"
+    android:versionCode="1"
+    android:versionName="1.0">
+
+    <overlay
+        android:priority="1"
+        android:targetPackage="com.android.systemui" />
+
+    <application
+        android:hasCode="false"/>
+</manifest>
diff --git a/brightness/BrightnessSliderThin/res/drawable-night/brightness_mirror_background.xml b/brightness/BrightnessSliderThin/res/drawable-night/brightness_mirror_background.xml
new file mode 100644
index 0000000..7d74896
--- /dev/null
+++ b/brightness/BrightnessSliderThin/res/drawable-night/brightness_mirror_background.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+     Copyright (C) 2023 The LeafOS Project
+     SPDX-License-Identifier: Apache-2.0
+-->
+<shape xmlns:android="http://schemas.android.com/apk/res/android">
+    <solid android:color="@android:color/system_neutral1_900" />
+    <corners android:radius="14.0dip" />
+</shape>
diff --git a/brightness/BrightnessSliderThin/res/drawable-night/brightness_progress_drawable.xml b/brightness/BrightnessSliderThin/res/drawable-night/brightness_progress_drawable.xml
new file mode 100644
index 0000000..03bdcd0
--- /dev/null
+++ b/brightness/BrightnessSliderThin/res/drawable-night/brightness_progress_drawable.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+     Copyright (C) 2023 The LeafOS Project
+     SPDX-License-Identifier: Apache-2.0
+-->
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+    <item android:id="@android:id/background" android:gravity="center_vertical|fill_horizontal">
+        <shape>
+            <size android:height="4.0dip" />
+            <corners android:radius="2.0dip" />
+            <solid android:color="@android:color/system_neutral1_800" />
+        </shape>
+    </item>
+    <item android:id="@android:id/progress" android:gravity="center_vertical|fill_horizontal">
+        <com.android.systemui.util.RoundedCornerProgressDrawable android:drawable="@drawable/brightness_progress_full_drawable_thin" />
+    </item>
+</layer-list>
diff --git a/brightness/BrightnessSliderThin/res/drawable/brightness_mirror_background.xml b/brightness/BrightnessSliderThin/res/drawable/brightness_mirror_background.xml
new file mode 100644
index 0000000..3b6b61f
--- /dev/null
+++ b/brightness/BrightnessSliderThin/res/drawable/brightness_mirror_background.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+     Copyright (C) 2023 The LeafOS Project
+     SPDX-License-Identifier: Apache-2.0
+-->
+<shape xmlns:android="http://schemas.android.com/apk/res/android">
+    <solid android:color="@android:color/system_neutral1_50" />
+    <corners android:radius="14.0dip" />
+</shape>
diff --git a/brightness/BrightnessSliderThin/res/drawable/brightness_progress_drawable.xml b/brightness/BrightnessSliderThin/res/drawable/brightness_progress_drawable.xml
new file mode 100644
index 0000000..802c4c1
--- /dev/null
+++ b/brightness/BrightnessSliderThin/res/drawable/brightness_progress_drawable.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+     Copyright (C) 2023 The LeafOS Project
+     SPDX-License-Identifier: Apache-2.0
+-->
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+    <item android:id="@android:id/background" android:gravity="center_vertical|fill_horizontal">
+        <shape>
+            <size android:height="4.0dip" />
+            <corners android:radius="2.0dip" />
+            <solid android:color="@android:color/system_neutral1_10" />
+        </shape>
+    </item>
+    <item android:id="@android:id/progress" android:gravity="center_vertical|fill_horizontal">
+        <com.android.systemui.util.RoundedCornerProgressDrawable android:drawable="@drawable/brightness_progress_full_drawable_thin" />
+    </item>
+</layer-list>
diff --git a/brightness/BrightnessSliderThin/res/drawable/brightness_progress_full_drawable_thin.xml b/brightness/BrightnessSliderThin/res/drawable/brightness_progress_full_drawable_thin.xml
new file mode 100644
index 0000000..5d483cf
--- /dev/null
+++ b/brightness/BrightnessSliderThin/res/drawable/brightness_progress_full_drawable_thin.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+     Copyright (C) 2023 The LeafOS Project
+     SPDX-License-Identifier: Apache-2.0
+-->
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+    <item android:gravity="center_vertical|fill_horizontal">
+        <shape>
+            <size android:height="4.0dip" />
+            <corners android:radius="2.0dip" />
+            <solid android:color="?android:colorAccent" />
+        </shape>
+    </item>
+    <item android:gravity="end|center" android:drawable="@drawable/ic_brightness_thumb" />
+</layer-list>
diff --git a/brightness/BrightnessSliderThin/res/drawable/ic_brightness_thumb.xml b/brightness/BrightnessSliderThin/res/drawable/ic_brightness_thumb.xml
new file mode 100644
index 0000000..2f4af8f
--- /dev/null
+++ b/brightness/BrightnessSliderThin/res/drawable/ic_brightness_thumb.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+     Copyright (C) 2023 The LeafOS Project
+     SPDX-License-Identifier: Apache-2.0
+-->
+<vector android:tint="?android:colorAccent" android:height="14.0dip" android:width="14.0dip" android:viewportWidth="42.0" android:viewportHeight="42.0"
+    xmlns:android="http://schemas.android.com/apk/res/android">
+    <path android:fillColor="#ffffffff" android:pathData="M 21 0 C 32.5979797464 0 42 9.40202025355 42 21 C 42 32.5979797464 32.5979797464 42 21 42 C 9.40202025355 42 0 32.5979797464 0 21 C 0 9.40202025355 9.40202025355 0 21 0 Z" android:strokeWidth="1.0" />
+</vector>
diff --git a/customizations.mk b/customizations.mk
index af210c4..758baed 100644
--- a/customizations.mk
+++ b/customizations.mk
@@ -12,6 +12,11 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+# Brightness slider styles
+PRODUCT_PACKAGES += \
+    BrightnessSliderFilledOverlay \
+    BrightnessSliderThinOverlay
+
 # Fonts
 PRODUCT_PACKAGES += \
     FontGoogleSansOverlay \