Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: window radius isn't changed #102

Merged
merged 1 commit into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions app/utils/animationviewcontainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
#include <QPropertyAnimation>
#include <QPainter>

#include <DPlatformTheme>

static QColor outerBorderColor = QColor(0, 0, 0, static_cast<int>(0.15 * 255));
static QColor innerBorderColor = QColor(255, 255, 255, static_cast<int>(0.2 * 255));
#define ALPHA_OFFSET 10
Expand Down Expand Up @@ -58,6 +60,10 @@ AnimationViewContainer::AnimationViewContainer(QWidget *parent)
update();
});

connect(DGuiApplicationHelper::instance()->applicationTheme(), &DPlatformTheme::windowRadiusChanged, this, [this](int radius){
m_windowHandle->setWindowRadius(radius);
});

connect(DGuiApplicationHelper::instance(), &DGuiApplicationHelper::themeTypeChanged, this, [this, setOuterBorderColor](DGuiApplicationHelper::ColorType type){
if (!m_windowHandle || type == m_themeType)
return;
Expand Down
1 change: 0 additions & 1 deletion notification/notifycenterwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ void NotifyCenterWidget::initUI()
void NotifyCenterWidget::initConnections()
{
connect(DGuiApplicationHelper::instance(), &DGuiApplicationHelper::themeTypeChanged, this, &NotifyCenterWidget::refreshTheme);

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