A fully functional Android app built entirely with Kotlin and Jetpack Compose
opt out of forced dark mode
Andrea Severi95ab14601fbd
diff --git a/app/src/main/res/values-v29/themes.xml b/app/src/main/res/values-v29/themes.xmlnew file mode 100644index 000000000..beba8427b--- /dev/null+++ b/app/src/main/res/values-v29/themes.xml@@ -0,0 +1,21 @@+<?xml version="1.0" encoding="utf-8"?><!--+ ~ Copyright 2024 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+ ~+ ~ https://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>+ <style name="Theme.Nia" parent="NightAdjusted.Theme.Nia">+ <item name="android:forceDarkAllowed">false</item>+ </style>+</resources>diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xmlindex 7cdd25527..743ea737c 100644--- a/app/src/main/res/values/themes.xml+++ b/app/src/main/res/values/themes.xml@@ -21,7 +21,9 @@<style name="NightAdjusted.Theme.Nia" parent="android:Theme.Material.Light.NoActionBar" /><!-- The final theme we use -->- <style name="Theme.Nia" parent="NightAdjusted.Theme.Nia" />+ <style name="Theme.Nia" parent="NightAdjusted.Theme.Nia">+ <item name="android:forceDarkAllowed" tools:targetApi="q">false</item>+ </style><style name="NightAdjusted.Theme.Splash" parent="Theme.SplashScreen"><item name="android:windowLightStatusBar" tools:targetApi="23">true</item>