mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Merge pull request #349 from LorenDB/iconFromTheme
Use system icon where applicable
This commit is contained in:
commit
5aa2218006
2 changed files with 2 additions and 3 deletions
|
@ -37,8 +37,7 @@ WelcomePage::WelcomePage(QWidget *parent)
|
||||||
QFont subTitleFont;
|
QFont subTitleFont;
|
||||||
subTitleFont.setPointSizeF(subTitleFont.pointSizeF() * 1.5);
|
subTitleFont.setPointSizeF(subTitleFont.pointSizeF() * 1.5);
|
||||||
|
|
||||||
QIcon icon;
|
QIcon icon{QIcon::fromTheme("nheko", QIcon{":/logos/splash.png"})};
|
||||||
icon.addFile(":/logos/splash.png");
|
|
||||||
|
|
||||||
auto logo_ = new QLabel(this);
|
auto logo_ = new QLabel(this);
|
||||||
logo_->setPixmap(icon.pixmap(256));
|
logo_->setPixmap(icon.pixmap(256));
|
||||||
|
|
|
@ -174,7 +174,7 @@ main(int argc, char *argv[])
|
||||||
|
|
||||||
parser.process(app);
|
parser.process(app);
|
||||||
|
|
||||||
app.setWindowIcon(QIcon(":/logos/nheko.png"));
|
app.setWindowIcon(QIcon::fromTheme("nheko", QIcon{":/logos/nheko.png"}));
|
||||||
|
|
||||||
http::init();
|
http::init();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue