Move image resources into the launcher folder

This commit is contained in:
Alexander Bock
2020-10-12 16:15:43 +02:00
parent 460cf63468
commit 39362daf78
4 changed files with 4 additions and 3 deletions

View File

Before

Width:  |  Height:  |  Size: 145 KiB

After

Width:  |  Height:  |  Size: 145 KiB

View File

Before

Width:  |  Height:  |  Size: 8.6 KiB

After

Width:  |  Height:  |  Size: 8.6 KiB

View File

@@ -1,5 +1,7 @@
<!DOCTYPE RCC><RCC version="1.0">
<qresource>
<file>qss/launcher.qss</file>
<file>images/openspace-horiz-logo-small.png</file>
<file>images/launcher-background.png</file>
</qresource>
</RCC>

View File

@@ -82,7 +82,7 @@ LauncherWindow::LauncherWindow(std::string basePath, bool profileEnabled,
QLabel* logoImage = new QLabel(centralWidget);
logoImage->setObjectName("clear");
logoImage->setGeometry(QRect(LeftRuler, TopRuler, ItemWidth, ItemWidth / 4));
logoImage->setPixmap(QPixmap(_basePath + "/data/images/openspace-horiz-logo-small.png"));
logoImage->setPixmap(QPixmap(":/images/openspace-horiz-logo-small.png"));
QLabel* labelChoose = new QLabel("Choose Profile", centralWidget);
labelChoose->setObjectName("clear");
@@ -154,8 +154,7 @@ LauncherWindow::LauncherWindow(std::string basePath, bool profileEnabled,
bgpath = QString(globalConfig.pathTokens["SYNC"].c_str()) + filename;
}
else {
filename = QString::fromStdString("/data/images/profile0.png");
bgpath = QDir::fromNativeSeparators(_basePath) + filename;
bgpath = QString::fromStdString(":/images/launcher-background.png");
}
backgroundImage->setPixmap(QPixmap(bgpath));