Set MainWindow height to two-thirds of the screen height instead of half
This commit is contained in:
@@ -714,13 +714,13 @@ void GMainWindow::InitializeHotkeys() {
|
||||
}
|
||||
|
||||
void GMainWindow::SetDefaultUIGeometry() {
|
||||
// geometry: 55% of the window contents are in the upper screen half, 45% in the lower half
|
||||
// geometry: 53% of the window contents are in the upper screen half, 47% in the lower half
|
||||
const QRect screenRect = QApplication::desktop()->screenGeometry(this);
|
||||
|
||||
const int w = screenRect.width() * 2 / 3;
|
||||
const int h = screenRect.height() / 2;
|
||||
const int h = screenRect.height() * 2 / 3;
|
||||
const int x = (screenRect.x() + screenRect.width()) / 2 - w / 2;
|
||||
const int y = (screenRect.y() + screenRect.height()) / 2 - h * 55 / 100;
|
||||
const int y = (screenRect.y() + screenRect.height()) / 2 - h * 53 / 100;
|
||||
|
||||
setGeometry(x, y, w, h);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user