From daedc88f2d4c0ba170f76be7276846321574f202 Mon Sep 17 00:00:00 2001 From: Felitendo Date: Fri, 18 Sep 2026 09:02:47 +0200 Subject: [PATCH] feat: show the launchers' own logos when importing --- README.md | 1 - ...chers-instances-can-be-imported-from.patch | 40 ++++++++++++++----- 2 files changed, 29 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 3c6f6fa..0bc10a2 100644 --- a/README.md +++ b/README.md @@ -186,7 +186,6 @@ Importing instances offers every launcher the importers read — Prism Launcher, ATLauncher, GDLauncher and CurseForge — whether they are installed or not, each with the folder it keeps its instances in on this system, Flatpak and macOS bundles included, and each with its own logo. Upstream listed only the launchers it found, and left the rest to a path typed in by hand. -MultiMC keeps a plain badge instead: its branding may not be passed on. A running instance can be started again from the button next to Stop, as whichever account is selected, and the Logs tab then shows a console for each copy. diff --git a/patches/0024-Offer-the-launchers-instances-can-be-imported-from.patch b/patches/0024-Offer-the-launchers-instances-can-be-imported-from.patch index 1f20680..3e5a966 100644 --- a/patches/0024-Offer-the-launchers-instances-can-be-imported-from.patch +++ b/patches/0024-Offer-the-launchers-instances-can-be-imported-from.patch @@ -28,15 +28,17 @@ else's logo around. packages/ui/src/assets/launchers/README.md | 16 ++ .../ui/src/assets/launchers/atlauncher.svg | 1 + .../ui/src/assets/launchers/gdlauncher.png | Bin 0 -> 7218 bytes + packages/ui/src/assets/launchers/multimc.svg | 1 + packages/ui/src/assets/launchers/polymc.svg | 21 +++ .../src/assets/launchers/prism-launcher.svg | 57 +++++++ .../components/ImportInstanceStage.vue | 109 ++++++++++++- - .../components/LauncherMark.vue | 47 ++++++ + .../components/LauncherMark.vue | 55 +++++++ packages/ui/src/providers/instance-import.ts | 14 ++ - 14 files changed, 417 insertions(+), 42 deletions(-) + 15 files changed, 426 insertions(+), 42 deletions(-) create mode 100644 packages/ui/src/assets/launchers/README.md create mode 100644 packages/ui/src/assets/launchers/atlauncher.svg create mode 100644 packages/ui/src/assets/launchers/gdlauncher.png + create mode 100644 packages/ui/src/assets/launchers/multimc.svg create mode 100644 packages/ui/src/assets/launchers/polymc.svg create mode 100644 packages/ui/src/assets/launchers/prism-launcher.svg create mode 100644 packages/ui/src/components/flows/creation-flow-modal/components/LauncherMark.vue @@ -341,7 +343,7 @@ index 72f315d..15da6da 100644 /// Checks if this PathBuf is a valid instance for the given launcher type diff --git a/packages/ui/src/assets/launchers/README.md b/packages/ui/src/assets/launchers/README.md new file mode 100644 -index 0000000..33a2c0a +index 0000000..4c7d7a6 --- /dev/null +++ b/packages/ui/src/assets/launchers/README.md @@ -0,0 +1,16 @@ @@ -356,11 +358,11 @@ index 0000000..33a2c0a +| `polymc.svg` | [PolyMC/PolyMC](https://github.com/PolyMC/PolyMC), `program_info` | [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/), unchanged | +| `atlauncher.svg` | [ATLauncher/ATLauncher](https://github.com/ATLauncher/ATLauncher), `packaging/linux` | GPL-3.0, unchanged | +| `gdlauncher.png` | [gorilla-devs/GDLauncher](https://github.com/gorilla-devs/GDLauncher), `public/icon.png` | GPL-3.0, scaled down to 128×128 | ++| `multimc.svg` | [MultiMC/Launcher](https://github.com/MultiMC/Launcher), `branding` | No licence given; shown to name the launcher, optimised with svgo | + +CurseForge's logo is the one Modrinth already ships in `@modrinth/assets`. + -+MultiMC has none here: its name and logo may not be redistributed, so it keeps a plain badge with -+its initials. ++A launcher without a logo here falls back to a badge with its initials. diff --git a/packages/ui/src/assets/launchers/atlauncher.svg b/packages/ui/src/assets/launchers/atlauncher.svg new file mode 100644 index 0000000..5dd0000 @@ -524,6 +526,14 @@ LS3j3^P6 +\ No newline at end of file diff --git a/packages/ui/src/assets/launchers/polymc.svg b/packages/ui/src/assets/launchers/polymc.svg new file mode 100644 index 0000000..c192d50 @@ -796,16 +806,22 @@ index a4dfcdb..5384d29 100644 type: 'error', diff --git a/packages/ui/src/components/flows/creation-flow-modal/components/LauncherMark.vue b/packages/ui/src/components/flows/creation-flow-modal/components/LauncherMark.vue new file mode 100644 -index 0000000..ead64f1 +index 0000000..aa1b97d --- /dev/null +++ b/packages/ui/src/components/flows/creation-flow-modal/components/LauncherMark.vue -@@ -0,0 +1,47 @@ +@@ -0,0 +1,55 @@ + +