From 90a4f1ce295954104aef08d0f89c25572a85c1dc Mon Sep 17 00:00:00 2001 From: Nav Date: Sat, 4 Sep 2021 17:56:38 +0100 Subject: [PATCH] Added disabled font color for rotatable widgets --- .../UserInterfaces/InsightWindow/Widgets/RotatableLabel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/RotatableLabel.cpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/RotatableLabel.cpp index 7b8d5f3b..66cb43fd 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/RotatableLabel.cpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/RotatableLabel.cpp @@ -12,7 +12,7 @@ void RotatableLabel::paintEvent(QPaintEvent* event) { painter.setClipRect(0, 0, containerSize.width(), containerSize.height()); painter.save(); painter.setPen(Qt::PenStyle::SolidLine); - painter.setPen(QColor("#afb1b3")); + painter.setPen(QColor(this->isEnabled() ? "#afb1b3" : "#808484")); painter.translate(std::ceil(containerSize.width() / 2), std::ceil(containerSize.height() / 2)); painter.rotate(this->angle); painter.drawText(