1
0

feat: update the layout of main window.

update the layout of main window to make it looks more like
legacy Windows Photo Viewer.
This commit is contained in:
2026-07-04 15:20:14 +08:00
parent 4fe09757b3
commit 011c1e858f
2 changed files with 11 additions and 3 deletions

View File

@@ -17,7 +17,11 @@ FramelessWindow::FramelessWindow(QWidget *parent)
{
this->setWindowFlags(Qt::Window | Qt::WindowTitleHint | Qt::WindowSystemMenuHint | Qt::WindowMinMaxButtonsHint | Qt::WindowCloseButtonHint);
m_centralLayout->setContentsMargins(QMargins());
// YYC MARK:
// 72 px is the height of Windows Photo Viewer's bottom line.
// TODO: This value may be declared as a constant.
m_centralLayout->setContentsMargins(QMargins(0, 0, 0, 72));
}
void FramelessWindow::setCentralWidget(QWidget *widget)