Fixed most depratated warnings.

This commit is contained in:
Jeremy Borgman
2020-07-10 20:56:30 -05:00
parent f5013df306
commit dc77029cde
14 changed files with 19 additions and 15 deletions

View File

@@ -73,7 +73,7 @@ SidePanelWidget::SidePanelWidget(QPixmap *p, QWidget *parent) :
connect(this, &SidePanelWidget::thicknessChanged,
this, &SidePanelWidget::updateThickness);
QColor background = this->palette().background().color();
QColor background = this->palette().window().color();
bool isDark = ColorUtils::colorIsDark(background);
QString modifier = isDark ? PathInfo::whiteIconPath() :
PathInfo::blackIconPath();