From 253876ead05c07d9138472c52f40e0093176ece0 Mon Sep 17 00:00:00 2001 From: Ye ShanShan Date: Tue, 23 Jul 2024 09:57:27 +0800 Subject: [PATCH] fix: large radius when exist scaling scaling has been processed in kwin for 1070. Issue: https://github.com/linuxdeepin/developer-center/issues/9818 --- frame/qml/PanelPopupWindow.qml | 3 +-- frame/qml/PanelToolTipWindow.qml | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/frame/qml/PanelPopupWindow.qml b/frame/qml/PanelPopupWindow.qml index 0dc3e6199..f9ece3bd5 100644 --- a/frame/qml/PanelPopupWindow.qml +++ b/frame/qml/PanelPopupWindow.qml @@ -33,8 +33,7 @@ Window { // TODO: it's a qt bug which make Qt.Popup can not get input focus flags: Qt.Tool D.DWindow.enabled: true - D.DWindow.windowRadius: (D.DTK.platformTheme.windowRadius < 0 ? 4 : D.DTK.platformTheme.windowRadius) - * Screen.devicePixelRatio + D.DWindow.windowRadius: D.DTK.platformTheme.windowRadius < 0 ? 4 : D.DTK.platformTheme.windowRadius D.DWindow.enableBlurWindow: true // TODO set shadowOffset maunally. D.DWindow.shadowOffset: Qt.point(0, 10) diff --git a/frame/qml/PanelToolTipWindow.qml b/frame/qml/PanelToolTipWindow.qml index f6fce681e..005c27f77 100644 --- a/frame/qml/PanelToolTipWindow.qml +++ b/frame/qml/PanelToolTipWindow.qml @@ -11,6 +11,6 @@ PanelPopupWindow { id: root flags: Qt.Tool | Qt.WindowStaysOnTopHint - D.DWindow.windowRadius: 4 * Screen.devicePixelRatio + D.DWindow.windowRadius: 4 D.DWindow.shadowRadius: 8 }