summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPranav Vashi <neobuddy89@gmail.com>2022-08-01 01:17:57 +0530
committerdocHD <doc.divxm@gmail.com>2022-08-25 11:50:33 +0300
commit438e2e0a18b4556823d64a1e36b928bdb541a1bf (patch)
treef04489d2246d51f718a3141356e240060a393d38
parent6ddfd1747df29dec8905cec66f87291550dcea94 (diff)
Contacts: Fix navigation bar themings12.1
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com> Change-Id: Icf2b3465907279993a42daeafed7a620481ab509
-rw-r--r--res/values-night/lineage_bools.xml20
-rw-r--r--res/values-v27/styles.xml4
-rw-r--r--res/values/lineage_bools.xml20
-rw-r--r--res/values/lineage_colors.xml4
4 files changed, 44 insertions, 4 deletions
diff --git a/res/values-night/lineage_bools.xml b/res/values-night/lineage_bools.xml
new file mode 100644
index 000000000..f017662e3
--- /dev/null
+++ b/res/values-night/lineage_bools.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2018 The LineageOS 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.
+-->
+<resources>
+
+ <bool name="light_navigation_bar">false</bool>
+</resources>
diff --git a/res/values-v27/styles.xml b/res/values-v27/styles.xml
index ca71d406f..3028b1133 100644
--- a/res/values-v27/styles.xml
+++ b/res/values-v27/styles.xml
@@ -50,7 +50,7 @@
<item name="android:popupMenuStyle">@style/PopupMenuStyle</item>
<item name="android:navigationBarColor">@color/navigation_bar_bg</item>
<item name="android:navigationBarDividerColor">@color/navigation_bar_divider</item>
- <item name="android:windowLightNavigationBar">true</item>
+ <item name="android:windowLightNavigationBar">@bool/light_navigation_bar</item>
</style>
<style name="LaunchScreenTheme" parent="Theme.AppCompat.Light.DarkActionBar">
@@ -128,7 +128,7 @@
<item name="popupMenuStyle">@style/PopupMenuStyleAppCompat</item>
<item name="android:navigationBarColor">@color/navigation_bar_bg</item>
<item name="android:navigationBarDividerColor">@color/navigation_bar_divider</item>
- <item name="android:windowLightNavigationBar">true</item>
+ <item name="android:windowLightNavigationBar">@bool/light_navigation_bar</item>
</style>
</resources>
diff --git a/res/values/lineage_bools.xml b/res/values/lineage_bools.xml
new file mode 100644
index 000000000..7b0f4e19a
--- /dev/null
+++ b/res/values/lineage_bools.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2018 The LineageOS 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.
+-->
+<resources>
+
+ <bool name="light_navigation_bar">true</bool>
+</resources>
diff --git a/res/values/lineage_colors.xml b/res/values/lineage_colors.xml
index 6aee4d227..1d73ff3e5 100644
--- a/res/values/lineage_colors.xml
+++ b/res/values/lineage_colors.xml
@@ -15,6 +15,6 @@
limitations under the License.
-->
<resources>
- <color name="navigation_bar_bg">@android:color/white</color>
- <color name="navigation_bar_divider">#1f000000</color>
+ <color name="navigation_bar_bg">@color/background_primary</color>
+ <color name="navigation_bar_divider">@*android:color/transparent</color>
</resources>