Fixed issue #912. Labels in inactive state return to initial color.

(grafted from b222072d66ff164252223728d913226b500df73a)

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-12-20 17:50:33 +02:00
parent ac6224d2df
commit e23438347a
2 changed files with 2 additions and 0 deletions

View file

@ -8,6 +8,7 @@
- [#903] Bug in tool Cut Spline path.
- [#905] Valentina crashes with error: This id is not unique.
- [#909] Valentina produces wrong united path.
- [#912] Labels in inactive state return to initial color.
# Version 0.6.1 October 23, 2018
- [#885] Regression. Broken support for multi size measurements.

View file

@ -1219,6 +1219,7 @@ void DialogTool::ChangeColor(QWidget *widget, const QColor &color)
SCASSERT(widget != nullptr)
QPalette palette = widget->palette();
palette.setColor(QPalette::Active, widget->foregroundRole(), color);
palette.setColor(QPalette::Inactive, widget->foregroundRole(), color);
widget->setPalette(palette);
}