summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2020-12-04 11:33:34 +0100
committerGitHub <noreply@github.com>2020-12-04 11:33:34 +0100
commit5aa221800667687a7b8178abb905a1dc87843b59 (patch)
tree425b08838aa6f31b3887b6d152bad1bc3fc3e527 /src
parent5ad33512685122045ac06c3c9f780a711b40dab8 (diff)
parentde858ca80ccba9eab734587aaf1a1922343ecc0b (diff)
Merge pull request #349 from LorenDB/iconFromTheme
Use system icon where applicable
Diffstat (limited to 'src')
-rw-r--r--src/WelcomePage.cpp3
-rw-r--r--src/main.cpp2
2 files changed, 2 insertions, 3 deletions
diff --git a/src/WelcomePage.cpp b/src/WelcomePage.cpp
index e4b0e1c6..22b73ac7 100644
--- a/src/WelcomePage.cpp
+++ b/src/WelcomePage.cpp
@@ -37,8 +37,7 @@ WelcomePage::WelcomePage(QWidget *parent)
QFont subTitleFont;
subTitleFont.setPointSizeF(subTitleFont.pointSizeF() * 1.5);
- QIcon icon;
- icon.addFile(":/logos/splash.png");
+ QIcon icon{QIcon::fromTheme("nheko", QIcon{":/logos/splash.png"})};
auto logo_ = new QLabel(this);
logo_->setPixmap(icon.pixmap(256));
diff --git a/src/main.cpp b/src/main.cpp
index 6fbccf5c..5eeebb82 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -174,7 +174,7 @@ main(int argc, char *argv[])
parser.process(app);
- app.setWindowIcon(QIcon(":/logos/nheko.png"));
+ app.setWindowIcon(QIcon::fromTheme("nheko", QIcon{":/logos/nheko.png"}));
http::init();