mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-26 23:08:55 -06:00
Move image resources into the launcher folder
This commit is contained in:
|
Before Width: | Height: | Size: 145 KiB After Width: | Height: | Size: 145 KiB |
|
Before Width: | Height: | Size: 8.6 KiB After Width: | Height: | Size: 8.6 KiB |
@@ -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>
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user