navigation bar fixed

This commit is contained in:
Syping 2019-01-13 14:40:16 +01:00
parent ea0526ae9d
commit 1f3c036b47
1 changed files with 1 additions and 1 deletions

View File

@ -386,7 +386,7 @@ void PictureDialog::stylizeDialog()
if (QtWin::isCompositionEnabled())
{
QPalette palette;
QtWin::extendFrameIntoClientArea(this, 0, this->layout()->menuBar()->height(), 0, 0);
QtWin::extendFrameIntoClientArea(this, 0, (layout()->menuBar()->height() * AppEnv::screenRatioPR()), 0, 0);
ui->jsonFrame->setStyleSheet(QString("QFrame { background: %1; }").arg(palette.window().color().name()));
setStyleSheet("PictureDialog { background: transparent; }");
}