Skip to content

Commit

Permalink
fix: window radius isn't changed
Browse files Browse the repository at this point in the history
window radius isn't changed by dcc

Log:
Bug: https://pms.uniontech.com/bug-view-273039.html
  • Loading branch information
FeiWang1119 committed Sep 11, 2024
1 parent 39523f1 commit fc53c77
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions notification/notifycenterwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <DFontSizeManager>
#include <DGuiApplicationHelper>
#include <DIconTheme>
#include <DPlatformTheme>

DWIDGET_USE_NAMESPACE

Expand Down Expand Up @@ -142,6 +143,10 @@ void NotifyCenterWidget::initUI()
void NotifyCenterWidget::initConnections()
{
connect(DGuiApplicationHelper::instance(), &DGuiApplicationHelper::themeTypeChanged, this, &NotifyCenterWidget::refreshTheme);
connect(DGuiApplicationHelper::instance()->systemTheme(), &DPlatformTheme::windowRadiusChanged, this, [this](int radius){
qWarning() << "111111111111" << radius;
this->setRadius(radius);
});

connect(m_wmHelper, &DWindowManagerHelper::hasCompositeChanged, this, &NotifyCenterWidget::CompositeChanged, Qt::QueuedConnection);
connect(m_notifyWidget->model(), &NotifyModel::fullCollapsedChanged, this, &NotifyCenterWidget::updateToggleNotificationFoldingButtonVisible);
Expand Down

0 comments on commit fc53c77

Please sign in to comment.