From c60bcc30acab79cf57567171d0c778010daf401e Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Thu, 20 Dec 2018 17:50:33 +0200 Subject: [PATCH] Fixed issue #912. Labels in inactive state return to initial color. --HG-- branch : release --- ChangeLog.txt | 1 + src/libs/vtools/dialogs/tools/dialogtool.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/ChangeLog.txt b/ChangeLog.txt index 1e4e2c312..8fce60202 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -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. diff --git a/src/libs/vtools/dialogs/tools/dialogtool.cpp b/src/libs/vtools/dialogs/tools/dialogtool.cpp index 39e64daa1..e231e3781 100644 --- a/src/libs/vtools/dialogs/tools/dialogtool.cpp +++ b/src/libs/vtools/dialogs/tools/dialogtool.cpp @@ -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); }