From 1c92b32d3dff682ff86ffa344934ea3fb09f3549 Mon Sep 17 00:00:00 2001 From: wangfei Date: Tue, 17 Dec 2024 21:12:19 +0800 Subject: [PATCH] fix: wrong color of roundWidget update color of roundWidget pms: BUG-295685 --- .../window/personalizationthememodule.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dcc-old/src/plugin-personalization/window/personalizationthememodule.cpp b/dcc-old/src/plugin-personalization/window/personalizationthememodule.cpp index 0b14ba63f1..299a370c01 100644 --- a/dcc-old/src/plugin-personalization/window/personalizationthememodule.cpp +++ b/dcc-old/src/plugin-personalization/window/personalizationthememodule.cpp @@ -176,6 +176,7 @@ void PersonalizationThemeModule::onActiveColorClicked() QColorDialog *colorDialog = new QColorDialog(pItem->palette().highlight().color(), pItem); colorDialog->deleteLater(); if (QDialog::Accepted == colorDialog->exec()) { + m_work->setActiveColors(colorDialog->selectedColor().name() + "," + colorDialog->selectedColor().name()); m_work->setActiveColor(colorDialog->selectedColor().name()); } } else { @@ -387,6 +388,8 @@ QWidget *PersonalizationThemeModule::initAccentColor(ModuleObject *module) if (w->activeColors().first.compare(newColor, Qt::CaseInsensitive) == 0 || w->activeColors().second.compare(newColor, Qt::CaseInsensitive) == 0) { bgWidget->setSelectedItem(w); + w->setColor(newColor); + w->update(); break; } else if (i == endIndex) { bgWidget->setSelectedItem(w);