Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: large radius when exist scaling #581

Merged
merged 1 commit into from
Jul 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
}
Loading