Skip to content

Commit

Permalink
fix: wrong color of roundWidget
Browse files Browse the repository at this point in the history
update color of roundWidget

pms: BUG-295685
  • Loading branch information
FeiWang1119 committed Dec 18, 2024
1 parent 2987ab8 commit 1c92b32
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 1c92b32

Please sign in to comment.