Qt: Replace the remaining use of 86box.png with .ico

This commit is contained in:
Alexander Babikov
2026-02-26 22:39:52 +05:00
parent aa64aaa0a2
commit d76c07fa88
4 changed files with 2 additions and 7 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 846 B

View File

@@ -14,6 +14,7 @@
*/
#include "qt_updatedetails.hpp"
#include "ui_qt_updatedetails.h"
#include "qt_defs.hpp"
#include <QDesktopServices>
#include <QPushButton>
@@ -52,7 +53,7 @@ UpdateDetails::
connect(ui->buttonBox, &QDialogButtonBox::accepted, [updateResult] {
visitDownloadPage(updateResult.channel);
});
const auto logo = QPixmap(":/assets/86box.png").scaled(QSize(64, 64), Qt::KeepAspectRatio, Qt::SmoothTransformation);
const auto logo = QIcon(EMU_ICON_PATH).pixmap(QSize(64, 64));
ui->icon->setPixmap(logo);
}

View File

@@ -38,11 +38,6 @@ VMManagerAddMachine::
setPage(Page_NameAndLocation, new NameAndLocationPage);
setPage(Page_Conclusion, new ConclusionPage);
// Need to create a better image
// QPixmap originalPixmap(":/assets/86box.png");
// QPixmap scaledPixmap = originalPixmap.scaled(150, 150, Qt::KeepAspectRatio);
QPixmap wizardPixmap(":/assets/86box-wizard.png");
#ifndef Q_OS_MACOS
setWizardStyle(ModernStyle);
setPixmap(LogoPixmap, QPixmap(":assets/addvm-logo.png"));

View File

@@ -83,7 +83,6 @@
<file alias="/texture_frag.spv">qt/texture_frag.spv</file>
</qresource>
<qresource prefix="/assets">
<file alias="86box.png">qt/assets/86box.png</file>
<file alias="86box-wizard.png">qt/assets/86box-wizard.png</file>
<file alias="addvm-logo.png">qt/assets/addvm-logo.png</file>
<file alias="addvm-watermark.png">qt/assets/addvm-watermark.png</file>