added preview channel view to the appearance tab

This commit is contained in:
fourtf
2018-07-03 16:55:02 +02:00
parent 6909d1d939
commit d6c6a552d8
8 changed files with 215 additions and 165 deletions
+15 -8
View File
@@ -455,7 +455,12 @@ void BaseWindow::paintEvent(QPaintEvent *)
painter.drawRect(0, 0, this->width() - 1, this->height() - 1);
}
this->drawCustomWindowFrame(painter);
// this->drawCustomWindowFrame(painter);
// QPainter painter(this);
QColor bg = this->overrideBackgroundColor_.value_or(this->themeManager->window.background);
painter.fillRect(QRect(0, 1, this->width() - 0, this->height() - 0), bg);
}
void BaseWindow::updateScale()
@@ -494,14 +499,16 @@ void BaseWindow::calcButtonsSizes()
void BaseWindow::drawCustomWindowFrame(QPainter &painter)
{
#ifdef USEWINSDK
if (this->hasCustomWindowFrame()) {
QPainter painter(this);
//#ifdef USEWINSDK
// if (this->hasCustomWindowFrame()) {
// QPainter painter(this);
painter.fillRect(QRect(0, 1, this->width() - 0, this->height() - 0),
this->themeManager->window.background);
}
#endif
// QColor bg =
// this->overrideBackgroundColor_.value_or(this->themeManager->window.background);
// painter.fillRect(QRect(0, 1, this->width() - 0, this->height() - 0), bg);
// }
//#endif
}
bool BaseWindow::handleDPICHANGED(MSG *msg)