From 0d34f0749d86cdc40cee79c6ebd1a9f81d7b7374 Mon Sep 17 00:00:00 2001 From: Alexander Bakker Date: Mon, 25 Mar 2024 20:14:17 +0100 Subject: [PATCH] Use DayNight as the default theme This reduces the chance that we flashbang the user when they launch the app. The issue remains on older Android versions that don't natively support dark mode, but I don't think that's fixable. Activities override the theme based on the user's settings, so this change only has effect while the app is launching. --- app/src/main/AndroidManifest.xml | 1 + app/src/main/res/values/themes.xml | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 96b6ebfa..d3ea78bb 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -27,6 +27,7 @@ android:icon="@mipmap/${iconName}" android:label="Aegis" android:supportsRtl="true" + android:theme="@style/Theme.Aegis.Launch" tools:targetApi="tiramisu"> diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index 3739784c..1f399dea 100644 --- a/app/src/main/res/values/themes.xml +++ b/app/src/main/res/values/themes.xml @@ -1,4 +1,11 @@ + +