diff options
author | Simon Rettberg | 2017-11-13 13:41:39 +0100 |
---|---|---|
committer | Simon Rettberg | 2017-11-13 13:41:39 +0100 |
commit | cacd16116201eb578e09d29a889785c19e99caf5 (patch) | |
tree | cd2821655699d390451427f648f52c72b37b9477 /src/mainwindow.cpp | |
parent | Increase font size in text fields a bit (diff) | |
download | slxgreeter-cacd16116201eb578e09d29a889785c19e99caf5.tar.gz slxgreeter-cacd16116201eb578e09d29a889785c19e99caf5.tar.xz slxgreeter-cacd16116201eb578e09d29a889785c19e99caf5.zip |
Improve style a bit: Pull b-l-logo down, a bit smaller, better dropdown style
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r-- | src/mainwindow.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 404feb1..3307ef8 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -82,8 +82,9 @@ MainWindow::MainWindow(bool primary, int screen, const QRect &screenRect, bool t banner->move((screenRect.width() - bw) / 2, (spaceY - bh) / 2); } } - // TODO: UniLogo - int ls = (spaceY > 400 ? 400 : spaceY); + int ls = (spaceY > 500 ? 500 : spaceY); + if (ls > screenRect.height() / 5) ls = screenRect.height() / 5; + if (ls > screenRect.width() / 5) ls = screenRect.width() / 5; QRect logoRect(QPoint(0, screenRect.height() - ls), QSize(ls, ls)); QSize logoSize = createLogo(logoRect); if (showLoginForm()) { @@ -121,7 +122,7 @@ QSize MainWindow::createLogo(const QRect &max) } QSize size(w, h); QRect c(max); - c.setSize(size); + c.adjust(0, max.height() - h, -(max.width() - w), 0); c.adjust(10, 10, -10, -10); img->setGeometry(c); return size; |