diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2017-10-15 22:08:51 +0300 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2017-10-15 22:08:51 +0300 |
commit | 8390ff253d3688c3f76e3149d43d3120f9549359 (patch) | |
tree | cc93ae33329fb0b5a78d20022f638b45d98c68ae /src/UserInfoWidget.cc | |
parent | 33fb3ea0917c6410e9f77aafe52802712378a0a8 (diff) |
Fix icons for retina displays
Diffstat (limited to 'src/UserInfoWidget.cc')
-rw-r--r-- | src/UserInfoWidget.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/UserInfoWidget.cc b/src/UserInfoWidget.cc index 09a75a3b..04cfec74 100644 --- a/src/UserInfoWidget.cc +++ b/src/UserInfoWidget.cc @@ -29,7 +29,7 @@ UserInfoWidget::UserInfoWidget(QWidget *parent) , user_id_("@user:homeserver.org") , logoutModal_{ nullptr } , logoutDialog_{ nullptr } - , logoutButtonSize_{ 32 } + , logoutButtonSize_{ 20 } { QSizePolicy sizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed); setSizePolicy(sizePolicy); @@ -77,15 +77,13 @@ UserInfoWidget::UserInfoWidget(QWidget *parent) buttonLayout_->setMargin(0); logoutButton_ = new FlatButton(this); - logoutButton_->setForegroundColor(QColor("#555459")); - logoutButton_->setFixedSize(logoutButtonSize_, logoutButtonSize_); logoutButton_->setCornerRadius(logoutButtonSize_ / 2); QIcon icon; - icon.addFile(":/icons/icons/power-button-off.png", QSize(), QIcon::Normal, QIcon::Off); + icon.addFile(":/icons/icons/ui/power-button-off.png"); logoutButton_->setIcon(icon); - logoutButton_->setIconSize(QSize(logoutButtonSize_ / 2, logoutButtonSize_ / 2)); + logoutButton_->setIconSize(QSize(logoutButtonSize_, logoutButtonSize_)); buttonLayout_->addWidget(logoutButton_); |