overlay: Update black theme for dark mode
Change-Id: I362c75a9a9456bb4d7ffe12072b1b2ef1ea49dac
Signed-off-by: althafvly <althafvly@gmail.com>
diff --git a/customizations/BlackTheme/Android.mk b/customizations/BlackTheme/Android.mk
index c8ed7da..8ba13f9 100644
--- a/customizations/BlackTheme/Android.mk
+++ b/customizations/BlackTheme/Android.mk
@@ -3,10 +3,8 @@
LOCAL_RRO_THEME := LeafBlackTheme
LOCAL_PRODUCT_MODULE := true
-LOCAL_CERTIFICATE := platform
LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
LOCAL_PACKAGE_NAME := LeafBlackTheme
-
-LOCAL_PRIVATE_PLATFORM_APIS := true
+LOCAL_SDK_VERSION := current
include $(BUILD_RRO_PACKAGE)
diff --git a/customizations/BlackTheme/AndroidManifest.xml b/customizations/BlackTheme/AndroidManifest.xml
index 044300e..b0cef48 100644
--- a/customizations/BlackTheme/AndroidManifest.xml
+++ b/customizations/BlackTheme/AndroidManifest.xml
@@ -1,5 +1,5 @@
<!--
- * Copyright (C) 2020 The LineageOS Project
+ * Copyright (C) 2020,2022 The LineageOS Project
*
* SPDX-License-Identifier: Apache-2.0
-->
@@ -8,5 +8,9 @@
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="android"
+ android:category="android.theme.customization.theme_style"
android:priority="1"/>
+ <application
+ android:label="@string/android_overlay_black"
+ android:hasCode="false"/>
</manifest>
diff --git a/customizations/BlackTheme/res/color/surface_header_dark_sysui.xml b/customizations/BlackTheme/res/color/surface_header_dark_sysui.xml
new file mode 100644
index 0000000..ff289f7
--- /dev/null
+++ b/customizations/BlackTheme/res/color/surface_header_dark_sysui.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ * Copyright (C) 2022 The LineageOS Project
+ *
+ * SPDX-License-Identifier: Apache-2.0
+-->
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:color="@color/system_neutral1_900" />
+</selector>
diff --git a/customizations/BlackTheme/res/values-night/colors.xml b/customizations/BlackTheme/res/values-night/colors.xml
deleted file mode 100644
index 74831d0..0000000
--- a/customizations/BlackTheme/res/values-night/colors.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- * Copyright (C) 2020 The LineageOS Project
- *
- * SPDX-License-Identifier: Apache-2.0
--->
-
-<resources>
- <color name="primary_device_default_settings">#101010</color> <!-- colorPrimary -->
- <color name="primary_dark_device_default_settings">#000000</color> <!-- colorPrimaryDark-->
- <color name="material_grey_800">#121212</color> <!-- google elgoogleogoelo -->
- <color name="material_grey_900">#101010</color> <!-- google elgoogleogoelo -->
-</resources>
diff --git a/customizations/BlackTheme/res/values/colors.xml b/customizations/BlackTheme/res/values/colors.xml
new file mode 100644
index 0000000..02fd828
--- /dev/null
+++ b/customizations/BlackTheme/res/values/colors.xml
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ * Copyright (C) 2022 The LineageOS Project
+ *
+ * SPDX-License-Identifier: Apache-2.0
+-->
+<resources>
+ <color name="system_neutral1_0">#FFFFFF</color>
+ <color name="system_neutral1_10">#FFFFFF</color>
+ <color name="system_neutral1_50">@android:color/system_accent2_50</color>
+ <color name="system_neutral1_100">@android:color/system_accent1_50</color>
+ <color name="system_neutral1_200">@android:color/system_accent1_50</color>
+ <color name="system_neutral1_300">@android:color/system_accent1_50</color>
+ <color name="system_neutral1_400">@android:color/system_accent1_100</color>
+ <color name="system_neutral1_500">#242424</color>
+ <color name="system_neutral1_600">#212121</color>
+ <color name="system_neutral1_700">#191919</color>
+ <color name="system_neutral1_800">#171717</color>
+ <color name="system_neutral1_900">#000000</color>
+ <color name="system_neutral1_1000">#000000</color>
+
+ <color name="system_neutral2_0">#FFFFFF</color>
+ <color name="system_neutral2_10">#FFFFFF</color>
+ <color name="system_neutral2_50">@android:color/system_accent2_50</color>
+ <color name="system_neutral2_100">@android:color/system_accent1_50</color>
+ <color name="system_neutral2_200">@android:color/system_accent2_100</color>
+ <color name="system_neutral2_300">@android:color/system_accent2_200</color>
+ <color name="system_neutral2_400">@android:color/system_accent2_300</color>
+ <color name="system_neutral2_500">#242424</color>
+ <color name="system_neutral2_600">#212121</color>
+ <color name="system_neutral2_700">#191919</color>
+ <color name="system_neutral2_800">#171717</color>
+ <color name="system_neutral2_900">#000000</color>
+ <color name="system_neutral2_1000">#000000</color>
+</resources>
diff --git a/customizations/BlackTheme/res/values/strings.xml b/customizations/BlackTheme/res/values/strings.xml
new file mode 100644
index 0000000..b5ab679
--- /dev/null
+++ b/customizations/BlackTheme/res/values/strings.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ * Copyright (C) 2020 The LineageOS Project
+ *
+ * SPDX-License-Identifier: Apache-2.0
+-->
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string name="android_overlay_black">Black theme</string>
+</resources>