Fixed issue #912. Labels in inactive state return to initial color.
(grafted from b222072d66ff164252223728d913226b500df73a) --HG-- branch : develop
This commit is contained in:
parent
ac6224d2df
commit
e23438347a
|
@ -8,6 +8,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.
|
||||||
|
|
|
@ -1219,6 +1219,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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user