Skip to content

Commit 7c1ef7c

Browse files
committed
Always use dark mode in main activity
1 parent 579c596 commit 7c1ef7c

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

app/src/main/AndroidManifest.xml

+4-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@
3939
android:configChanges="orientation|keyboardHidden|screenSize"
4040
android:windowSoftInputMode="stateAlwaysHidden|adjustPan"
4141
android:screenOrientation="nosensor"
42-
android:exported="true">
42+
android:exported="true"
43+
android:theme="@style/Theme.Camera">
4344

4445
<intent-filter>
4546
<action android:name="android.intent.action.MAIN"/>
@@ -72,7 +73,8 @@
7273
android:screenOrientation="nosensor"
7374
android:showWhenLocked="true"
7475
android:excludeFromRecents="true"
75-
android:exported="true">
76+
android:exported="true"
77+
android:theme="@style/Theme.Camera">
7678

7779
<intent-filter>
7880
<action android:name="android.media.action.STILL_IMAGE_CAMERA_SECURE"/>

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

+7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
33
<!-- Base application theme. -->
4+
<style name="Theme.Camera" parent="Theme.Material3.Dark.NoActionBar">
5+
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
6+
7+
<item name="android:navigationBarColor">@android:color/transparent</item>
8+
<item name="android:statusBarColor">@android:color/transparent</item>
9+
</style>
10+
411
<style name="Theme.App" parent="Theme.Material3.DayNight.NoActionBar">
512
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
613

0 commit comments

Comments
 (0)