overlays: Make round QS toggleable [3/3]
Change-Id: I3087045b71d2188112953062c2d9e36c7a092beb
diff --git a/customizations.mk b/customizations.mk
index 758baed..7049c16 100644
--- a/customizations.mk
+++ b/customizations.mk
@@ -65,7 +65,8 @@
IconShapeTeardropOverlay \
IconShapeVesselOverlay
-# Misc
+# Other
PRODUCT_PACKAGES += \
LeafBlackTheme \
- NavigationBarNoHintOverlay
+ NavigationBarNoHintOverlay \
+ RoundQSOverlay
diff --git a/customizations/RoundQSOverlay/Android.bp b/customizations/RoundQSOverlay/Android.bp
new file mode 100644
index 0000000..de045c7
--- /dev/null
+++ b/customizations/RoundQSOverlay/Android.bp
@@ -0,0 +1,10 @@
+//
+// Copyright (C) 2023 The Leaf Project
+//
+// SPDX-License-Identifier: Apache-2.0
+//
+runtime_resource_overlay {
+ name: "RoundQSOverlay",
+ theme: "RoundQS",
+ product_specific: true,
+}
diff --git a/customizations/RoundQSOverlay/AndroidManifest.xml b/customizations/RoundQSOverlay/AndroidManifest.xml
new file mode 100644
index 0000000..33cbf5b
--- /dev/null
+++ b/customizations/RoundQSOverlay/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.qs_style.round"
+ android:versionCode="1"
+ android:versionName="1.0">
+
+ <overlay
+ android:priority="1"
+ android:targetPackage="com.android.systemui" />
+
+ <application
+ android:hasCode="false"/>
+</manifest>
diff --git a/customizations/RoundQSOverlay/res/drawable/qs_customizer_toolbar.xml b/customizations/RoundQSOverlay/res/drawable/qs_customizer_toolbar.xml
new file mode 100644
index 0000000..a885d54
--- /dev/null
+++ b/customizations/RoundQSOverlay/res/drawable/qs_customizer_toolbar.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2014 The Android Open Source Project
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+ http://www.apache.org/licenses/LICENSE-2.0
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<inset xmlns:android="http://schemas.android.com/apk/res/android">
+ <shape>
+ <solid android:color="@android:color/transparent"/>
+ </shape>
+</inset>
diff --git a/customizations/RoundQSOverlay/res/values-land/config.xml b/customizations/RoundQSOverlay/res/values-land/config.xml
new file mode 100644
index 0000000..064b2f8
--- /dev/null
+++ b/customizations/RoundQSOverlay/res/values-land/config.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2023 The LeafOS Project
+ SPDX-License-Identifier: Apache-2.0
+-->
+<resources>
+ <integer name="quick_settings_max_rows">1</integer>
+ <integer name="quick_qs_panel_max_tiles">6</integer>
+</resources>
diff --git a/customizations/RoundQSOverlay/res/values-land/dimens.xml b/customizations/RoundQSOverlay/res/values-land/dimens.xml
new file mode 100644
index 0000000..0cc5a9f
--- /dev/null
+++ b/customizations/RoundQSOverlay/res/values-land/dimens.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <dimen name="qs_tile_margin_vertical">8dp</dimen>
+</resources>
diff --git a/customizations/RoundQSOverlay/res/values/config.xml b/customizations/RoundQSOverlay/res/values/config.xml
new file mode 100644
index 0000000..a37f067
--- /dev/null
+++ b/customizations/RoundQSOverlay/res/values/config.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2023 The LeafOS Project
+ SPDX-License-Identifier: Apache-2.0
+-->
+<resources>
+ <integer name="quick_settings_max_rows">3</integer>
+ <integer name="quick_qs_panel_max_rows">1</integer>
+ <integer name="quick_qs_panel_num_columns">5</integer>
+ <integer name="quick_qs_panel_num_columns_landscape">6</integer>
+ <integer name="quick_qs_panel_num_columns_media">4</integer>
+ <integer name="quick_qs_panel_max_tiles">5</integer>
+ <integer name="qs_panel_num_columns">4</integer>
+ <integer name="qs_panel_num_columns_landscape">6</integer>
+ <integer name="qs_panel_num_columns_media">4</integer>
+</resources>
diff --git a/customizations/RoundQSOverlay/res/values/dimens.xml b/customizations/RoundQSOverlay/res/values/dimens.xml
new file mode 100644
index 0000000..44ea55a
--- /dev/null
+++ b/customizations/RoundQSOverlay/res/values/dimens.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2023 The LeafOS Project
+ SPDX-License-Identifier: Apache-2.0
+-->
+<resources>
+ <dimen name="custom_qs_tile_label_line_height">16sp</dimen>
+ <dimen name="custom_qs_panel_padding_top">20dp</dimen>
+ <dimen name="custom_notification_row_padding">0dp</dimen>
+ <dimen name="qs_tile_height">96dp</dimen>
+ <dimen name="qs_tile_margin_horizontal">22dp</dimen>
+ <dimen name="qs_footer_height">72dp</dimen>
+ <dimen name="qs_customize_internal_side_paddings">6dp</dimen>
+ <dimen name="qs_label_container_margin">6dp</dimen>
+ <dimen name="qs_quick_tile_size">55dp</dimen>
+ <dimen name="qs_tile_padding">18dp</dimen>
+ <dimen name="qs_tile_text_size">12sp</dimen>
+
+ <!-- QQS Brightness slider -->
+ <dimen name="qqs_top_brightness_margin_top">-12dp</dimen>
+ <dimen name="qqs_top_brightness_margin_bottom">30dp</dimen>
+ <dimen name="qqs_bottom_brightness_margin_top">8dp</dimen>
+
+ <!-- QS Brightness slider -->
+ <dimen name="qs_top_brightness_margin_bottom">25dp</dimen>
+ <dimen name="qs_bottom_brightness_margin_top">20dp</dimen>
+</resources>