Fixed issue #912. Labels in inactive state return to initial color.
--HG-- branch : release
This commit is contained in:
parent
989a16b789
commit
c60bcc30ac
|
@ -2,6 +2,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.
|
||||
|
|
|
@ -1185,6 +1185,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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user