From 36adcd8fc0b50d6ee6c2925dbc22797eeb4f807c Mon Sep 17 00:00:00 2001 From: zsien Date: Tue, 7 Mar 2023 16:39:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E6=A0=8F=E5=9C=86=E8=A7=92=E8=B7=9F=E9=9A=8F=E7=AA=97=E5=8F=A3?= =?UTF-8?q?=E5=9C=86=E8=A7=92=E5=8F=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes linuxdeepin/developer-center#3601 --- frame/window/mainwindowbase.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/frame/window/mainwindowbase.cpp b/frame/window/mainwindowbase.cpp index 050d1f7c0..2c8a4e8b9 100644 --- a/frame/window/mainwindowbase.cpp +++ b/frame/window/mainwindowbase.cpp @@ -148,11 +148,6 @@ int MainWindowBase::getBorderRadius() const if (!DWindowManagerHelper::instance()->hasComposite() || m_multiScreenWorker->displayMode() != DisplayMode::Fashion) return 0; - if (Dtk::Core::DSysInfo::isCommunityEdition()) { // 社区版圆角与专业版不同 - DPlatformTheme *theme = DGuiApplicationHelper::instance()->systemTheme(); - return theme->windowRadius(0); - } - int size = ((m_position == Dock::Position::Top || m_position == Dock::Position::Bottom) ? height() : width()); return qMin(MAX_MIN_RADIUS_DIFFVALUE, qMax(size - MIN_RADIUS_WINDOWSIZE, 0)) + MIN_RADIUS; }