Skip to content

Commit 0d34f07

Browse files
committed
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.
1 parent f44fe38 commit 0d34f07

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
android:icon="@mipmap/${iconName}"
2828
android:label="Aegis"
2929
android:supportsRtl="true"
30+
android:theme="@style/Theme.Aegis.Launch"
3031
tools:targetApi="tiramisu">
3132
<activity android:name=".ui.TransferEntriesActivity"
3233
android:label="@string/title_activity_transfer" />

app/src/main/res/values/themes.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
<resources>
2+
<style name="Theme.Aegis.Launch" parent="Theme.Material3.DayNight.NoActionBar">
3+
<!-- colorPrimary in the root theme sets the task description color (seen in task switcher) -->
4+
<item name="colorPrimary">@color/md_theme_light_primary</item>
5+
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
6+
<item name="android:statusBarColor">@android:color/transparent</item>
7+
</style>
8+
29
<style name="Base.Theme.Aegis.Light" parent="Theme.Material3.Light">
310
<!-- Material colors -->
411
<item name="colorPrimary">@color/md_theme_light_primary</item>

0 commit comments

Comments
 (0)