From e9f547be7beb569daf6de80bf3db0fba5484a37e Mon Sep 17 00:00:00 2001 From: Ye ShanShan Date: Mon, 15 Jul 2024 13:27:04 +0800 Subject: [PATCH] fix: popup's window display abnormal it maybe a bug for deepin-kwin, and shadowRadius is set to tooltip. Issue: https://github.com/linuxdeepin/developer-center/issues/9616 --- frame/qml/PanelPopupWindow.qml | 1 - frame/qml/PanelToolTipWindow.qml | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/frame/qml/PanelPopupWindow.qml b/frame/qml/PanelPopupWindow.qml index 10eccc1b6..7ec852407 100644 --- a/frame/qml/PanelPopupWindow.qml +++ b/frame/qml/PanelPopupWindow.qml @@ -36,7 +36,6 @@ Window { D.DWindow.windowRadius: (D.DTK.platformTheme.windowRadius < 0 ? 4 : D.DTK.platformTheme.windowRadius) * Screen.devicePixelRatio D.DWindow.enableBlurWindow: true - D.DWindow.shadowRadius: 8 // TODO set shadowOffset maunally. D.DWindow.shadowOffset: Qt.point(0, 10) D.ColorSelector.family: D.Palette.CrystalColor diff --git a/frame/qml/PanelToolTipWindow.qml b/frame/qml/PanelToolTipWindow.qml index c429e0b3f..34277cdc1 100644 --- a/frame/qml/PanelToolTipWindow.qml +++ b/frame/qml/PanelToolTipWindow.qml @@ -11,4 +11,5 @@ PanelPopupWindow { id: root D.DWindow.windowRadius: 4 * Screen.devicePixelRatio + D.DWindow.shadowRadius: 8 }