Skip to content

Commit

Permalink
fix: large radius when exist scaling
Browse files Browse the repository at this point in the history
scaling has been processed in kwin for 1070.

Issue: 	linuxdeepin/developer-center#9818
  • Loading branch information
18202781743 authored and deepin-bot[bot] committed Jul 23, 2024
1 parent 229c242 commit 7b93db4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions frame/qml/PanelPopupWindow.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion frame/qml/PanelToolTipWindow.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 7b93db4

Please sign in to comment.