omni: Add Microg Ui Overlay for night theme and capital letter for the settings name
Change-Id: Ie02440a14a5735008c760259d0012475e49218e4
diff --git a/config/packages.mk b/config/packages.mk
index 17421ab..3e0f2ed 100644
--- a/config/packages.mk
+++ b/config/packages.mk
@@ -56,6 +56,11 @@
PRODUCT_PACKAGES += \
SimpleDeviceConfig
+ifeq ($(ROM_BUILDTYPE),MICROG)
+PRODUCT_PACKAGES += \
+ MicrogUIOverlay
+endif
+
# Telephony extension
#PRODUCT_PACKAGES += telephony-ext
#PRODUCT_BOOT_JARS += telephony-ext
diff --git a/overlay/MicrogUIOverlay/Android.bp b/overlay/MicrogUIOverlay/Android.bp
new file mode 100644
index 0000000..992cdb1
--- /dev/null
+++ b/overlay/MicrogUIOverlay/Android.bp
@@ -0,0 +1,9 @@
+package {
+ default_applicable_licenses: ["Android-Apache-2.0"],
+}
+
+runtime_resource_overlay {
+ name: "MicrogUIOverlay",
+ theme: "MicrogUIOverlay",
+ product_specific: true,
+}
diff --git a/overlay/MicrogUIOverlay/AndroidManifest.xml b/overlay/MicrogUIOverlay/AndroidManifest.xml
new file mode 100644
index 0000000..f40676a
--- /dev/null
+++ b/overlay/MicrogUIOverlay/AndroidManifest.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="com.google.android.gms.omni.overlay">
+
+ <application android:hasCode="false" />
+
+ <overlay
+ android:isStatic="true"
+ android:priority="100"
+ android:targetPackage="com.google.android.gms" />
+</manifest>
+
diff --git a/overlay/MicrogUIOverlay/res/drawable-anydpi-v26/ic_app_settings_foreground_mono.xml b/overlay/MicrogUIOverlay/res/drawable-anydpi-v26/ic_app_settings_foreground_mono.xml
new file mode 100644
index 0000000..8e2c26d
--- /dev/null
+++ b/overlay/MicrogUIOverlay/res/drawable-anydpi-v26/ic_app_settings_foreground_mono.xml
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ SPDX-FileCopyrightText: 2023 microG Project Team
+ ~ SPDX-License-Identifier: CC-BY-SA-4.0
+ -->
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="120"
+ android:viewportHeight="120"
+ android:tint="?android:attr/colorControlNormal">
+ <group
+ android:translateX="-12"
+ android:translateY="-12"
+ android:scaleX="6.0"
+ android:scaleY="6.0">
+ <path
+ android:fillColor="#000000"
+ android:fillAlpha="0.2"
+ android:pathData="M19.14,12.94c0.04,-0.3 0.06,-0.61 0.06,-0.94c0,-0.32 -0.02,-0.64 -0.07,-0.94l2.03,-1.58c0.18,-0.14 0.23,-0.41 0.12,-0.61l-1.92,-3.32c-0.12,-0.22 -0.37,-0.29 -0.59,-0.22l-2.39,0.96c-0.5,-0.38 -1.03,-0.7 -1.62,-0.94L14.4,2.81c-0.04,-0.24 -0.24,-0.41 -0.48,-0.41h-3.84c-0.24,0 -0.43,0.17 -0.47,0.41L9.25,5.35C8.66,5.59 8.12,5.92 7.63,6.29L5.24,5.33c-0.22,-0.08 -0.47,0 -0.59,0.22L2.74,8.87C2.62,9.08 2.66,9.34 2.86,9.48l2.03,1.58C4.84,11.36 4.8,11.69 4.8,12s0.02,0.64 0.07,0.94l-2.03,1.58c-0.18,0.14 -0.23,0.41 -0.12,0.61l1.92,3.32c0.12,0.22 0.37,0.29 0.59,0.22l2.39,-0.96c0.5,0.38 1.03,0.7 1.62,0.94l0.36,2.54c0.05,0.24 0.24,0.41 0.48,0.41h3.84c0.24,0 0.44,-0.17 0.47,-0.41l0.36,-2.54c0.59,-0.24 1.13,-0.56 1.62,-0.94l2.39,0.96c0.22,0.08 0.47,0 0.59,-0.22l1.92,-3.32c0.12,-0.22 0.07,-0.47 -0.12,-0.61L19.14,12.94z"
+ tools:ignore="VectorPath" />
+ </group>
+ <group
+ android:scaleX="0.40"
+ android:scaleY="0.40"
+ android:translateX="17"
+ android:translateY="15">
+ <path
+ android:pathData="m151.55,151.53a55,55 0,0 1,-66.39 8.74"
+ android:strokeAlpha="0.8"
+ android:strokeWidth="36"
+ android:fillColor="#00000000"
+ android:strokeColor="#000000"
+ android:fillAlpha="0.8"
+ android:strokeLineCap="butt" />
+ <path
+ android:pathData="M85.16,160.27A55,55 0,0 1,59.53 98.4"
+ android:strokeAlpha="0.6"
+ android:strokeWidth="36"
+ android:fillColor="#00000000"
+ android:strokeColor="#000000"
+ android:fillAlpha="0.6"
+ android:strokeLineCap="butt" />
+ <path
+ android:pathData="m59.53,98.4a55,55 0,0 1,25.63 -33.4"
+ android:strokeAlpha="0.5"
+ android:strokeWidth="36"
+ android:fillColor="#00000000"
+ android:strokeColor="#000000"
+ android:fillAlpha="0.5"
+ android:strokeLineCap="butt" />
+ <path
+ android:pathData="m85.16,65.01a55,55 0,0 1,66.39 8.74"
+ android:strokeAlpha="0.7"
+ android:strokeWidth="36"
+ android:fillColor="#00000000"
+ android:strokeColor="#000000"
+ android:fillAlpha="0.7"
+ android:strokeLineCap="butt" />
+ </group>
+</vector>
diff --git a/overlay/MicrogUIOverlay/res/drawable-night-v26/ic_app_settings_foreground_mono.xml b/overlay/MicrogUIOverlay/res/drawable-night-v26/ic_app_settings_foreground_mono.xml
new file mode 100644
index 0000000..ea5334d
--- /dev/null
+++ b/overlay/MicrogUIOverlay/res/drawable-night-v26/ic_app_settings_foreground_mono.xml
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ SPDX-FileCopyrightText: 2023 microG Project Team
+ ~ SPDX-License-Identifier: CC-BY-SA-4.0
+ -->
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="120"
+ android:viewportHeight="120"
+ android:tint="?android:attr/colorControlNormal">
+ <group
+ android:translateX="-12"
+ android:translateY="-12"
+ android:scaleX="6.0"
+ android:scaleY="6.0">
+ <path
+ android:fillColor="#FFFFFFFF"
+ android:fillAlpha="0.6"
+ android:pathData="M19.14,12.94c0.04,-0.3 0.06,-0.61 0.06,-0.94c0,-0.32 -0.02,-0.64 -0.07,-0.94l2.03,-1.58c0.18,-0.14 0.23,-0.41 0.12,-0.61l-1.92,-3.32c-0.12,-0.22 -0.37,-0.29 -0.59,-0.22l-2.39,0.96c-0.5,-0.38 -1.03,-0.7 -1.62,-0.94L14.4,2.81c-0.04,-0.24 -0.24,-0.41 -0.48,-0.41h-3.84c-0.24,0 -0.43,0.17 -0.47,0.41L9.25,5.35C8.66,5.59 8.12,5.92 7.63,6.29L5.24,5.33c-0.22,-0.08 -0.47,0 -0.59,0.22L2.74,8.87C2.62,9.08 2.66,9.34 2.86,9.48l2.03,1.58C4.84,11.36 4.8,11.69 4.8,12s0.02,0.64 0.07,0.94l-2.03,1.58c-0.18,0.14 -0.23,0.41 -0.12,0.61l1.92,3.32c0.12,0.22 0.37,0.29 0.59,0.22l2.39,-0.96c0.5,0.38 1.03,0.7 1.62,0.94l0.36,2.54c0.05,0.24 0.24,0.41 0.48,0.41h3.84c0.24,0 0.44,-0.17 0.47,-0.41l0.36,-2.54c0.59,-0.24 1.13,-0.56 1.62,-0.94l2.39,0.96c0.22,0.08 0.47,0 0.59,-0.22l1.92,-3.32c0.12,-0.22 0.07,-0.47 -0.12,-0.61L19.14,12.94z"
+ tools:ignore="VectorPath" />
+ </group>
+ <group
+ android:scaleX="0.40"
+ android:scaleY="0.40"
+ android:translateX="17"
+ android:translateY="15">
+ <path
+ android:pathData="m151.55,151.53a55,55 0,0 1,-66.39 8.74"
+ android:strokeWidth="36"
+ android:fillColor="#00000000"
+ android:strokeColor="#000000"
+ android:strokeLineCap="butt" />
+ <path
+ android:pathData="M85.16,160.27A55,55 0,0 1,59.53 98.4"
+ android:strokeWidth="36"
+ android:fillColor="#00000000"
+ android:strokeColor="#000000"
+ android:strokeLineCap="butt" />
+ <path
+ android:pathData="m59.53,98.4a55,55 0,0 1,25.63 -33.4"
+ android:strokeWidth="36"
+ android:fillColor="#00000000"
+ android:strokeColor="#000000"
+ android:strokeLineCap="butt" />
+ <path
+ android:pathData="m85.16,65.01a55,55 0,0 1,66.39 8.74"
+ android:strokeWidth="36"
+ android:fillColor="#00000000"
+ android:strokeColor="#000000"
+ android:strokeLineCap="butt" />
+ </group>
+</vector>
diff --git a/overlay/MicrogUIOverlay/res/values/strings.xml b/overlay/MicrogUIOverlay/res/values/strings.xml
new file mode 100644
index 0000000..3c1aa42
--- /dev/null
+++ b/overlay/MicrogUIOverlay/res/values/strings.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ SPDX-FileCopyrightText: 2023 OmniRom Project
+ ~ SPDX-License-Identifier: Apache-2.0
+ -->
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+
+ <string name="gms_settings_name">MicroG Settings</string>
+
+</resources>