Skip to content

Commit 0e2a203

Browse files
committed
example: Add new icon
1 parent eacf4de commit 0e2a203

File tree

14 files changed

+22
-50
lines changed

14 files changed

+22
-50
lines changed

example/build.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,10 @@ compose.desktop {
172172
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
173173
packageName = appName
174174
packageVersion = verName
175+
176+
macOS.iconFile = project.file("src/desktopMain/resources/macos/icon.icns")
177+
linux.iconFile = project.file("src/desktopMain/resources/linux/icon.png")
178+
windows.iconFile = project.file("src/desktopMain/resources/windows/icon.ico")
175179
}
176180
}
177181
nativeApplication {
@@ -180,6 +184,8 @@ compose.desktop {
180184
targetFormats(TargetFormat.Dmg)
181185
packageName = appName
182186
packageVersion = verName
187+
188+
macOS.iconFile = project.file("src/macosMain/resources/Miuix.icns")
183189
}
184190
}
185191
}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3-
<background android:drawable="@drawable/ic_launcher_background" />
3+
<background android:drawable="@android:color/white" />
4+
<monochrome android:drawable="@drawable/ic_launcher_foreground" />
45
<foreground android:drawable="@drawable/ic_launcher_foreground" />
56
</adaptive-icon>

example/src/androidMain/res/drawable/ic_launcher_background.xml

Lines changed: 0 additions & 10 deletions
This file was deleted.
43.7 KB
Loading

example/src/androidMain/res/drawable/ic_launcher_foreground.xml

Lines changed: 0 additions & 22 deletions
This file was deleted.
43.8 KB
Loading
266 KB
Binary file not shown.
1.03 MB
Binary file not shown.
266 KB
Binary file not shown.

iosApp/iosApp.xcodeproj/project.pbxproj

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@
8585
isa = PBXProject;
8686
attributes = {
8787
BuildIndependentTargetsInParallel = YES;
88+
KnownAssetTags = (
89+
New,
90+
);
8891
LastSwiftUpdateCheck = 1130;
8992
LastUpgradeCheck = 1540;
9093
ORGANIZATIONNAME = orgName;
@@ -281,6 +284,7 @@
281284
7555FFA6242A565B00829871 /* Debug */ = {
282285
isa = XCBuildConfiguration;
283286
buildSettings = {
287+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
284288
CODE_SIGN_IDENTITY = "Apple Development";
285289
CODE_SIGN_STYLE = Automatic;
286290
DEVELOPMENT_ASSET_PATHS = "";
@@ -297,7 +301,7 @@
297301
OTHER_LDFLAGS = (
298302
"$(inherited)",
299303
"-framework",
300-
"shared",
304+
shared,
301305
);
302306
PRODUCT_BUNDLE_IDENTIFIER = "${BUNDLE_ID}${TEAM_ID}";
303307
PRODUCT_NAME = "${APP_NAME}";
@@ -310,6 +314,7 @@
310314
7555FFA7242A565B00829871 /* Release */ = {
311315
isa = XCBuildConfiguration;
312316
buildSettings = {
317+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
313318
CODE_SIGN_IDENTITY = "Apple Development";
314319
CODE_SIGN_STYLE = Automatic;
315320
DEVELOPMENT_ASSET_PATHS = "";
@@ -326,7 +331,7 @@
326331
OTHER_LDFLAGS = (
327332
"$(inherited)",
328333
"-framework",
329-
"shared",
334+
shared,
330335
);
331336
PRODUCT_BUNDLE_IDENTIFIER = "${BUNDLE_ID}${TEAM_ID}";
332337
PRODUCT_NAME = "${APP_NAME}";

0 commit comments

Comments
 (0)