Skip to content

Commit 9240b2c

Browse files
committed
example: add night mode icon
1 parent 9167dfe commit 9240b2c

9 files changed

Lines changed: 52 additions & 4 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Copyright 2025, compose-miuix-ui contributors -->
3+
<!-- SPDX-License-Identifier: Apache-2.0 -->
4+
5+
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
6+
<background android:drawable="@android:color/background_dark" />
7+
<monochrome android:drawable="@mipmap/ic_launcher_foreground" />
8+
<foreground android:drawable="@mipmap/ic_launcher_foreground" />
9+
</adaptive-icon>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Copyright 2025, compose-miuix-ui contributors -->
3+
<!-- SPDX-License-Identifier: Apache-2.0 -->
4+
5+
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
6+
<background android:drawable="@android:color/system_background_dark" />
7+
<monochrome android:drawable="@mipmap/ic_launcher_foreground" />
8+
<foreground android:drawable="@mipmap/ic_launcher_foreground" />
9+
</adaptive-icon>

example/src/androidMain/res/mipmap-v26/ic_launcher.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<!-- SPDX-License-Identifier: Apache-2.0 -->
44

55
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
6-
<background android:drawable="@android:color/white" />
6+
<background android:drawable="@android:color/background_light" />
77
<monochrome android:drawable="@mipmap/ic_launcher_foreground" />
88
<foreground android:drawable="@mipmap/ic_launcher_foreground" />
99
</adaptive-icon>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Copyright 2025, compose-miuix-ui contributors -->
3+
<!-- SPDX-License-Identifier: Apache-2.0 -->
4+
5+
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
6+
<background android:drawable="@android:color/system_background_light" />
7+
<monochrome android:drawable="@mipmap/ic_launcher_foreground" />
8+
<foreground android:drawable="@mipmap/ic_launcher_foreground" />
9+
</adaptive-icon>

example/src/androidMain/res/values-night-v31/themes.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
<style name="Theme.Miuix" parent="android:Theme.Material.NoActionBar">
77
<item name="android:forceDarkAllowed">false</item>
88
<item name="android:windowSplashScreenBackground">@android:color/background_dark</item>
9-
<item name="android:windowSplashScreenAnimatedIcon">@mipmap/ic_launcher_foreground</item>
9+
<item name="android:windowSplashScreenAnimatedIcon">@mipmap/ic_launcher</item>
1010
</style>
1111
</resources>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Copyright 2025, compose-miuix-ui contributors -->
3+
<!-- SPDX-License-Identifier: Apache-2.0 -->
4+
5+
<resources>
6+
<style name="Theme.Miuix" parent="android:Theme.Material.NoActionBar">
7+
<item name="android:forceDarkAllowed">false</item>
8+
<item name="android:windowSplashScreenBackground">@android:color/system_background_dark</item>
9+
<item name="android:windowSplashScreenAnimatedIcon">@mipmap/ic_launcher</item>
10+
</style>
11+
</resources>

example/src/androidMain/res/values-v31/themes.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
<resources>
66
<style name="Theme.Miuix" parent="android:Theme.Material.Light.NoActionBar">
77
<item name="android:windowSplashScreenBackground">@android:color/background_light</item>
8-
<item name="android:windowSplashScreenAnimatedIcon">@mipmap/ic_launcher_foreground</item>
8+
<item name="android:windowSplashScreenAnimatedIcon">@mipmap/ic_launcher</item>
99
</style>
1010
</resources>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Copyright 2025, compose-miuix-ui contributors -->
3+
<!-- SPDX-License-Identifier: Apache-2.0 -->
4+
5+
<resources>
6+
<style name="Theme.Miuix" parent="android:Theme.Material.Light.NoActionBar">
7+
<item name="android:windowSplashScreenBackground">@android:color/system_background_light</item>
8+
<item name="android:windowSplashScreenAnimatedIcon">@mipmap/ic_launcher</item>
9+
</style>
10+
</resources>

iosApp/iosApp/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<key>CFBundleShortVersionString</key>
1818
<string>1.0.7</string>
1919
<key>CFBundleVersion</key>
20-
<string>643</string>
20+
<string>648</string>
2121
<key>LSRequiresIPhoneOS</key>
2222
<true/>
2323
<key>CADisableMinimumFrameDurationOnPhone</key>

0 commit comments

Comments
 (0)