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.
This commit is contained in:
Mentalflow 2024-05-05 13:26:35 +08:00
parent 2a1aa6066e
commit 8cd8b65f49
Signed by: Mentalflow
GPG Key ID: 5AE68D4401A2EE71
1 changed files with 1 additions and 2 deletions

View File

@ -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{