diff --git a/cmake/build_helpers.cmake b/cmake/build_helpers.cmake index 54d361d7b..1c2a2248f 100644 --- a/cmake/build_helpers.cmake +++ b/cmake/build_helpers.cmake @@ -240,7 +240,7 @@ macro(createPackage) install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/LICENSE DESTINATION ${CMAKE_INSTALL_PREFIX}/share/licenses/imhex) install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/dist/imhex.desktop DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications) install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/dist/imhex.mime.xml DESTINATION ${CMAKE_INSTALL_PREFIX}/share/mime/packages RENAME imhex.xml) - install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/resources/icon.png DESTINATION ${CMAKE_INSTALL_PREFIX}/share/pixmaps RENAME imhex.png) + install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/resources/icon.svg DESTINATION ${CMAKE_INSTALL_PREFIX}/share/pixmaps RENAME imhex.svg) downloadImHexPatternsFiles("./share/imhex") # install AppStream file diff --git a/dist/web/Dockerfile b/dist/web/Dockerfile index 939a403fa..e07056f8b 100644 --- a/dist/web/Dockerfile +++ b/dist/web/Dockerfile @@ -94,7 +94,7 @@ COPY --from=build [ \ "/build/wasm-config.js", \ "/build/enable-threads.js", \ "/build/favicon.ico", \ - "/build/icon.png", \ + "/build/icon.svg", \ "/build/manifest.json", \ "/build/robots.txt", \ "/build/sitemap.xml", \ diff --git a/dist/web/source/favicon.ico b/dist/web/source/favicon.ico index a72e2ab21..9bbece106 100644 Binary files a/dist/web/source/favicon.ico and b/dist/web/source/favicon.ico differ diff --git a/dist/web/source/icon.png b/dist/web/source/icon.png deleted file mode 100644 index b8fa513ca..000000000 Binary files a/dist/web/source/icon.png and /dev/null differ diff --git a/dist/web/source/icon.svg b/dist/web/source/icon.svg new file mode 100644 index 000000000..0e386e1bf --- /dev/null +++ b/dist/web/source/icon.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/dist/web/source/index.html b/dist/web/source/index.html index a3ce70122..455128202 100644 --- a/dist/web/source/index.html +++ b/dist/web/source/index.html @@ -11,7 +11,7 @@ - + @@ -38,7 +38,7 @@ "founder": "WerWolv", "slogan": "A Hex Editor for Reverse Engineers, Programmers and people who value their retinas when working at 3 AM.", "url": "https://imhex.werwolv.net", - "logo": "https://imhex.werwolv.net/assets/logos/logo.png" + "logo": "https://imhex.werwolv.net/assets/logos/logo.svg" } diff --git a/dist/web/source/manifest.json b/dist/web/source/manifest.json index 23ccc9188..13ec80737 100644 --- a/dist/web/source/manifest.json +++ b/dist/web/source/manifest.json @@ -10,8 +10,8 @@ ], "icons": [ { - "src": "icon.png", - "type": "image/png", + "src": "icon.svg", + "type": "image/svg", "sizes": "640x640" } ], diff --git a/plugins/builtin/romfs/assets/common/logo.png b/plugins/builtin/romfs/assets/common/logo.png deleted file mode 100644 index b8fa513ca..000000000 Binary files a/plugins/builtin/romfs/assets/common/logo.png and /dev/null differ diff --git a/plugins/builtin/romfs/assets/common/logo.svg b/plugins/builtin/romfs/assets/common/logo.svg new file mode 100644 index 000000000..0e386e1bf --- /dev/null +++ b/plugins/builtin/romfs/assets/common/logo.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/plugins/builtin/source/content/views/view_about.cpp b/plugins/builtin/source/content/views/view_about.cpp index 08e6f6776..9c61780f6 100644 --- a/plugins/builtin/source/content/views/view_about.cpp +++ b/plugins/builtin/source/content/views/view_about.cpp @@ -117,7 +117,7 @@ namespace hex::plugin::builtin { // Draw the ImHex icon if (!m_logoTexture.isValid()) - m_logoTexture = ImGuiExt::Texture::fromImage(romfs::get("assets/common/logo.png").span(), ImGuiExt::Texture::Filter::Linear); + m_logoTexture = ImGuiExt::Texture::fromSVG(romfs::get("assets/common/logo.svg").span(), 0, 0, ImGuiExt::Texture::Filter::Linear); ImGui::Image(m_logoTexture, scaled({ 100, 100 })); if (ImGui::IsItemClicked()) { diff --git a/resources/dist/icon.svg b/resources/dist/icon.svg new file mode 100644 index 000000000..0e386e1bf --- /dev/null +++ b/resources/dist/icon.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/resources/dist/windows/icon.ico b/resources/dist/windows/icon.ico index f50804896..9bbece106 100644 Binary files a/resources/dist/windows/icon.ico and b/resources/dist/windows/icon.ico differ diff --git a/resources/icon.png b/resources/icon.png deleted file mode 100644 index 75d8371d3..000000000 Binary files a/resources/icon.png and /dev/null differ