summaryrefslogtreecommitdiffstats
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp7
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;