From 38da7da176719d0de642d4842c5b3ba9d0415bab Mon Sep 17 00:00:00 2001 From: zhouxiali Date: Fri, 5 Nov 2021 10:07:26 +0800 Subject: [PATCH] Fix:bug#88982 WiFi icon tri-state display error, does not show blue http://172.17.66.192/biz/bug-view-88982.html --- src/frontend/tools/radioitembutton.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/frontend/tools/radioitembutton.cpp b/src/frontend/tools/radioitembutton.cpp index 4006d2ac..fc1a95ee 100644 --- a/src/frontend/tools/radioitembutton.cpp +++ b/src/frontend/tools/radioitembutton.cpp @@ -121,6 +121,10 @@ void RadioItemButton::onPaletteChanged() m_backgroundColor = FOREGROUND_COLOR_NORMAL_INACTIVE_DARK; m_iconLabel->setPixmap(loadSvg(m_pixmap, PixmapColor::WHITE)); } + if (m_isActivated) { + m_backgroundColor = FOREGROUND_COLOR_NORMAL_ACTIVE; + m_iconLabel->setPixmap(loadSvg(m_pixmap, PixmapColor::WHITE)); + } } void RadioItemButton::onAnimationValueChanged(const QVariant& value)