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

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

View File

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

View File

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