From 8cd8b65f4911b42ba8411492f988f9336b0d3fd2 Mon Sep 17 00:00:00 2001 From: Mentalflow <312902918@qq.com> Date: Sun, 5 May 2024 13:26:35 +0800 Subject: [PATCH] RibbonWindow: Update window border for Win10 and below and remove unused code. Duo to qwindowkit's update, it's un necessary to set titlebar btns manually. --- lib_source/qml/RibbonWindow.qml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib_source/qml/RibbonWindow.qml b/lib_source/qml/RibbonWindow.qml index a2e1ef9..6c794ab 100644 --- a/lib_source/qml/RibbonWindow.qml +++ b/lib_source/qml/RibbonWindow.qml @@ -56,7 +56,6 @@ Window { if(Qt.platform.os === "osx") { windowAgent.setWindowAttribute("blur-effect", blurBehindWindow ? RibbonTheme.dark_mode ? "dark" : "light" : "none") - PlatformSupport.showSystemTitleBtns(window, true) } } Item{ @@ -113,7 +112,7 @@ Window { } border.color: RibbonTheme.dark_mode ? "#7A7A7A" : "#2C59B7" border.width: RibbonTheme.modern_style ? 1 : 0 - radius: Qt.platform.os === 'windows' ? 7 : 10 + radius: Qt.platform.os === 'windows' ? RibbonUI.is_win11 ? 7 : 0 : 10 visible: RibbonTheme.modern_style || blurBehindWindow } RibbonPopup{