From ea5da3bc3337b3125b780f7c24adbc1a73b5765b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 7 Jun 2015 20:19:33 +0300 Subject: Fix tabs color update. --- src/gui/widgets/tabs/tab.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/gui/widgets/tabs/tab.cpp') diff --git a/src/gui/widgets/tabs/tab.cpp b/src/gui/widgets/tabs/tab.cpp index 5a4b4f5dc..26f58e83b 100644 --- a/src/gui/widgets/tabs/tab.cpp +++ b/src/gui/widgets/tabs/tab.cpp @@ -234,7 +234,9 @@ void Tab::draw(Graphics *graphics) mode = TAB_HIGHLIGHTED; } - if (labelMode != mLabelMode) + // mRedraw need here because no other way to say label to change color + // +++ text from label must be moved to tab itself + if (labelMode != mLabelMode && mRedraw) { mLabelMode = labelMode; switch (labelMode) @@ -409,6 +411,7 @@ void Tab::setLabelFont(Font *const font) mLabel->setFont(font); mLabel->adjustSize(); adjustSize(); + mRedraw = true; } -- cgit v1.2.3-60-g2f50