[win] online-installer: migrate to EMF

This commit is contained in:
SimplestStudio
2024-12-24 17:47:46 +02:00
parent 75f2378286
commit 26b2aa3c8e
4 changed files with 2 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

View File

@ -4,7 +4,7 @@
#include "../src/resource.h"
IDI_MAINICON ICON DISCARDABLE APP_ICON_PATH
IDI_WELCOME PNG "./icons/welcome.png"
IDI_WELCOME RCDATA "./icons/welcome.emf"
IDT_TRANSLATIONS RCDATA APP_LANG_PATH
CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "./manifest/online-installer.exe.manifest"

View File

@ -182,7 +182,7 @@ void MainWindow::initInstallationMode(const std::wstring &url)
/* Image section*/
Label *wlcLbl = new Label(m_cenPanel);
wlcLbl->resize(282, 200);
wlcLbl->setImage(IDI_WELCOME, 282, 200);
wlcLbl->setEMFIcon(IDI_WELCOME, 282, 200);
wlcLbl->palette()->setColor(Palette::Background, Palette::Normal, 0xfefefe);
wlcLbl->setProperty(Widget::HSizeBehavior, Widget::Expanding);
wlcLbl->setProperty(Widget::VSizeBehavior, Widget::Fixed);