Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,20 @@ public static void startLoadingScreen(boolean fabricReady) {
dialog.setResizable(false);

try {
dialog.setIconImage(ImageIO.read(findImageUrl("icon", "icon.png", ImageIO.getReaderFileSuffixes())));
// Determine the loader-specific icon filename based on the runtime environment
final String loaderIconName = runningOnQuilt ? "icon-quilt.png" : "icon-fabric.png";
URL iconUrl = null;
try {
iconUrl = findImageUrl("icon", loaderIconName, ImageIO.getReaderFileSuffixes());
} catch (Exception ignored) {
// Fall back to default icon.png if loader-specific icon cannot be found
}
if (iconUrl == null) {
iconUrl = findImageUrl("icon", "icon.png", ImageIO.getReaderFileSuffixes());
}
dialog.setIconImage(ImageIO.read(iconUrl));
} catch (Exception e) {
println("Failed to load icon.png", e);
println("Failed to load window icon", e);
}

ImageIcon background;
Expand Down Expand Up @@ -598,4 +609,4 @@ public static void main(String[] args) {
}
close();
}
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.