[vlc-commits] [Git][videolan/vlc][master] qml: fix FastBlur effect not available in ArtistTopBanner
Steve Lhomme (@robUx4)
gitlab at videolan.org
Fri Dec 16 09:51:33 UTC 2022
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
9ec02f07 by Fatih Uzunoglu at 2022-12-16T09:24:39+00:00
qml: fix FastBlur effect not available in ArtistTopBanner
- - - - -
1 changed file:
- modules/gui/qt/medialibrary/qml/ArtistTopBanner.qml
Changes:
=====================================
modules/gui/qt/medialibrary/qml/ArtistTopBanner.qml
=====================================
@@ -50,21 +50,33 @@ FocusScope {
: undefined
mipmap: !!artist.cover
fillMode: artist.cover ? Image.PreserveAspectCrop : Image.Tile
- visible: false
+ visible: !blurLoader.active
- Rectangle {
- anchors.fill: background
- gradient: Gradient {
- GradientStop { position: 0.0; color: Qt.rgba(0, 0, 0, .5) }
- GradientStop { position: 1.0; color: Qt.rgba(0, 0, 0, .7) }
- }
+ // Single pass linear filtering, in case the effect is not available:
+ layer.enabled: visible
+ layer.smooth: true
+ layer.textureSize: Qt.size(width * .75, height * .75)
+ }
+
+ Loader {
+ id: blurLoader
+ anchors.fill: background
+
+ // Don't care Qt 6 Qt5Compat RHI compatible graphical effects for now
+ active: (GraphicsInfo.api === GraphicsInfo.OpenGL)
+
+ sourceComponent: FastBlur {
+ source: background
+ radius: VLCStyle.dp(4, VLCStyle.scale)
}
}
- FastBlur {
- source: background
+ Rectangle {
anchors.fill: background
- radius: VLCStyle.dp(4, VLCStyle.scale)
+ gradient: Gradient {
+ GradientStop { position: 0.0; color: Qt.rgba(0, 0, 0, .5) }
+ GradientStop { position: 1.0; color: Qt.rgba(0, 0, 0, .7) }
+ }
}
RowLayout {
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/9ec02f074b9e2850021f16d8e33d9b27206b73ff
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/9ec02f074b9e2850021f16d8e33d9b27206b73ff
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list