From b7a3df473d4ae398d1bb63411303f2578d2fd7d6 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Fri, 6 Nov 2020 23:05:29 +0100 Subject: [PATCH] Allow using SVG images as project icon Since exporters will save their own icon, the target platforms don't have to support SVG to display the icon correctly. This closes #23068. (cherry picked from commit 0f9432f0609d1e6b64a4038047777c3c108bc047) --- main/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main/main.cpp b/main/main.cpp index a685dfca5c6..9b3d3dc1119 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -1368,7 +1368,9 @@ Error Main::setup2(Thread::ID p_main_tid_override) { MAIN_PRINT("Main: END"); GLOBAL_DEF("application/config/icon", String()); - ProjectSettings::get_singleton()->set_custom_property_info("application/config/icon", PropertyInfo(Variant::STRING, "application/config/icon", PROPERTY_HINT_FILE, "*.png,*.webp")); + ProjectSettings::get_singleton()->set_custom_property_info("application/config/icon", + PropertyInfo(Variant::STRING, "application/config/icon", + PROPERTY_HINT_FILE, "*.png,*.webp,*.svg,*.svgz")); GLOBAL_DEF("application/config/macos_native_icon", String()); ProjectSettings::get_singleton()->set_custom_property_info("application/config/macos_native_icon", PropertyInfo(Variant::STRING, "application/config/macos_native_icon", PROPERTY_HINT_FILE, "*.icns"));