[vlc-commits] [Git][videolan/vlc][master] qml: do not pixel align the arrow in `PointingToolTip`
Felix Paul Kühne (@fkuehne)
gitlab at videolan.org
Mon Nov 9 18:28:52 UTC 2026
Felix Paul Kühne pushed to branch master at VideoLAN / VLC
Commits:
6c358993 by Fatih Uzunoglu at 2026-11-09T16:31:10+01:00
qml: do not pixel align the arrow in `PointingToolTip`
The arrow here is bit special because it is rotated,
so `border.pixelAligned: (radius < Number.EPSILON)`
binding is not enough here.
At the same time `anchors.alignWhenCentered` is also
`true` by default, which should rather be `false` in
this case.
- - - - -
1 changed file:
- modules/gui/qt/widgets/qml/PointingTooltip.qml
Changes:
=====================================
modules/gui/qt/widgets/qml/PointingTooltip.qml
=====================================
@@ -77,6 +77,7 @@ ToolTipExt {
// may still be clamped due to screen geometry:
anchors.horizontalCenterOffset: (pointingTooltip._x - pointingTooltip.x)
anchors.verticalCenter: parent.top
+ anchors.alignWhenCentered: false
implicitWidth: VLCStyle.dp(10, VLCStyle.scale)
implicitHeight: VLCStyle.dp(10, VLCStyle.scale)
@@ -85,7 +86,7 @@ ToolTipExt {
color: pointingTooltip.colorContext.bg.primary
border.color: pointingTooltip.colorContext.border
- border.pixelAligned: (radius < Number.EPSILON)
+ border.pixelAligned: false
}
}
}
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/6c35899343e5b67e6bf5cafcd996b6beb56de8a0
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/6c35899343e5b67e6bf5cafcd996b6beb56de8a0
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help
More information about the vlc-commits
mailing list