Color Test

This commit is contained in:
Rafael 2016-11-01 18:43:54 +01:00
parent 833bb90e4a
commit cbc0274bb7
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,6 @@ void PictureDialog::stylize()
{
if (QtWin::isCompositionEnabled())
{
//qDebug() << this->layout()->menuBar()->height();
QtWin::extendFrameIntoClientArea(this, 0, this->layout()->menuBar()->height() - 2, 0, 0);
setAttribute(Qt::WA_TranslucentBackground, true);
setAttribute(Qt::WA_NoSystemBackground, false);
@ -128,6 +127,7 @@ void PictureDialog::stylize()
{
QtWin::resetExtendedFrame(this);
setAttribute(Qt::WA_TranslucentBackground, false);
setStyleSheet(QString("PictureDialog { background: %1; }").arg(QtWin::realColorizationColor().name()));
}
}