[vlc-commits] [Git][videolan/vlc][master] 6 commits: qml: consider background visibility when adjusting bg color in `SideNavigationPane`
Felix Paul Kühne (@fkuehne)
gitlab at videolan.org
Fri Nov 6 16:55:32 UTC 2026
Felix Paul Kühne pushed to branch master at VideoLAN / VLC
Commits:
52d8b62b by Fatih Uzunoglu at 2026-11-06T17:38:49+01:00
qml: consider background visibility when adjusting bg color in `SideNavigationPane`
- - - - -
9c9fddb8 by Fatih Uzunoglu at 2026-11-06T17:38:49+01:00
qml: consider background visibility when adjusting bg color in `PlaylistPane`
- - - - -
83f27b93 by Fatih Uzunoglu at 2026-11-06T17:38:49+01:00
qml: use overlay dimming only over the main view in `MainDisplay`
- - - - -
455c1004 by Fatih Uzunoglu at 2026-11-06T17:38:49+01:00
qml: introduce property `DualKawaseBlur::inhibit`
- - - - -
2fa64e6a by Fatih Uzunoglu at 2026-11-06T17:38:49+01:00
qml: support multiple effect areas in `PartialEffect`
Since Qt `ShaderEffect` does not support providing
arrays to the shader's uniform block, discarding is
currently limited to 4 effect areas. This is only
relevant when blending is true and `sourceVisualRect`
is not set, which is not a concern for us since
we don't use blending in `MainDisplay` (because main
view's background color is opaque), and that is
the only use case of `PartialEffect` for the moment.
- - - - -
6588d51b by Fatih Uzunoglu at 2026-11-06T17:38:49+01:00
qml: provide intra-window frosted glass backdrop blur in overlayed side bars
When the window width is small, both the side navigation and playlist
panes become overlay on the main view.
Since in this case inter-window backdrop blur is not applicable, we
currently paint the background with a static color provided by the theme.
With this change, we provide the same backdrop blur in side bars
that we provide in mini player (that always overlays the main view),
provided that backdrop blur is requested (`qt-backdrop-blur`).
- - - - -
6 changed files:
- modules/gui/qt/maininterface/qml/MainDisplay.qml
- modules/gui/qt/maininterface/qml/SideNavigationPane.qml
- modules/gui/qt/playlist/qml/PlaylistPane.qml
- modules/gui/qt/shaders/RectFilter.frag
- modules/gui/qt/widgets/qml/DualKawaseBlur.qml
- modules/gui/qt/widgets/qml/PartialEffect.qml
Changes:
=====================================
modules/gui/qt/maininterface/qml/MainDisplay.qml
=====================================
@@ -320,7 +320,10 @@ FocusScope {
layer.enabled: MainCtx.backdropBlurRequested() &&
(GraphicsInfo.shaderType === GraphicsInfo.RhiShader) &&
- (miniPlayer.visible || !!loaderUpdatePane.item?.visible)
+ (miniPlayer.visible ||
+ !!loaderUpdatePane.item?.visible ||
+ sidebar.needExternalBackgroundProvider ||
+ playlistLoader.needExternalBackgroundProvider)
// Blurring requires to access neighbour pixels, thus the source texture should be bigger than
// the effect so that the effect have access to the neighbor pixels for the pixels near the
@@ -391,22 +394,53 @@ FocusScope {
blending: stackViewParent.color.a < (1.0 - Number.EPSILON)
+ effectRects: {
+ let ret = []
+
+ if (miniPlayer.visible || loaderUpdatePane.item?.visible)
+ ret.push(bottomEffectRect)
+
+ if (sidebar.needExternalBackgroundProvider)
+ ret.push(leftEffectRect)
+
+ if (playlistLoader.needExternalBackgroundProvider)
+ ret.push(rightEffectRect)
+
+ return ret
+ }
+
+ // For mini player and update pane:
// Each pass of the blur effect also suffers from the border neighbour pixel issue mentioned
// above, making all the borders problematic, to a less considerable extent. For that reason,
// we extend both the top and the bottom edges and use viewport to prevent overdraw:
- effectRect: Qt.rect(-stackView.x,
- stackView.height - stackViewParent.edgeExtension,
- stackViewParent.width + 2 * stackViewParent.edgeExtension,
- loaderUpdatePane.height + miniPlayer.height + 2 * stackViewParent.edgeExtension)
+ readonly property rect bottomEffectRect: Qt.rect(-stackView.x,
+ stackView.height - stackViewParent.edgeExtension,
+ stackViewParent.width + 2 * stackViewParent.edgeExtension,
+ loaderUpdatePane.height + miniPlayer.height + 2 * stackViewParent.edgeExtension)
+
+ // For side navigation pane when screen is small:
+ // We don't care edge extension here, since it becomes obvious only when the main view is scrolled (relevant with mini player).
+ readonly property rect leftEffectRect: Qt.rect(stackViewParent.edgeExtension,
+ 0.0,
+ sidebar.width,
+ sidebar.height)
+
+ // For side playlist pane when screen is small:
+ // We don't care edge extension here, since it becomes obvious only when the main view is scrolled (relevant with mini player).
+ readonly property rect rightEffectRect: Qt.rect(stackViewParent.edgeExtension +
+ (sidebar.needExternalBackgroundProvider ? playlistLoader.x
+ : (playlistLoader.x - sidebar.width)),
+ 0.0,
+ playlistLoader.width,
+ playlistLoader.height)
// WARNING: We are not using `sourceVisualRect` because it is not trivial to guarantee that
// the visual (`ShaderEffect`) scene graph sizing and sub-texturing are synchronized.
// This can cause the visual to deviate from 1:1 representation of the texture
// momentarily, leading to sizing glitches during initialization and animations.
- effect: frostedGlassEffect
-
- Widgets.FrostedGlassEffect {
+ // NOTE: This is a `Component`, the effect item is instantiated by `PartialEffect`:
+ effect: Widgets.FrostedGlassEffect {
id: frostedGlassEffect
ColorContext {
@@ -418,6 +452,12 @@ FocusScope {
backgroundColor: (ready ? "transparent" : stackViewParent.color)
tint: frostedTheme.bg.secondary
+ // We only care about edge extension in mini player (by checking if `index` is 0),
+ // since it becomes obvious only when the main view is scrolled:
+ required property int index
+
+ readonly property bool forBottomArea: (miniPlayer.visible || !!loaderUpdatePane.item?.visible) && (index === 0)
+
// Prevent overdraw (the extension margin should not be painted).
// This also saves video memory compared to solely using visual rect.
// Note that viewport rect does not cover edge extension in y-axis
@@ -427,16 +467,17 @@ FocusScope {
// view mode). Since we don't do texture extension in y-axis, we
// don't need to cover the edge extension in y-axis, which allows
// us to save some video memory (as opposed to `visualRect`).
- viewportRect: Qt.rect(stackView.x,
- stackViewParent.edgeExtension,
- stackView.width + (2 * stackViewParent.edgeExtension),
- height - (2 * stackViewParent.edgeExtension))
-
- visualRect: (stackView.width < stackViewParent.width) ? Qt.rect(stackViewParent.edgeExtension,
- viewportRect.y,
- width - (2 * stackViewParent.edgeExtension),
- viewportRect.height)
- : Qt.rect(0, 0, 0, 0)
+ viewportRect: forBottomArea ? Qt.rect(stackView.x,
+ stackViewParent.edgeExtension,
+ stackView.width + (2 * stackViewParent.edgeExtension),
+ height - (2 * stackViewParent.edgeExtension))
+ : Qt.rect(0.0, 0.0, 0.0, 0.0)
+
+ visualRect: forBottomArea ? Qt.rect(stackViewParent.edgeExtension,
+ viewportRect.y,
+ width - (2 * stackViewParent.edgeExtension),
+ viewportRect.height)
+ : Qt.rect(0, 0, 0, 0)
}
}
@@ -523,7 +564,7 @@ FocusScope {
}
}
- Rectangle {
+ MouseArea {
id: smallScreenOverlay
// overlay for smallscreens
@@ -536,18 +577,22 @@ FocusScope {
height: parent.height - g_mainDisplay.displayMargin
visible: VLCStyle.isScreenSmall && (playlistLoader.shown || (sidebar.visible && (sidebar.state === "expanded")))
- color: "black"
- opacity: 0.4
- MouseArea {
+ hoverEnabled: true
+ onClicked: pannelVisiblity.hideVisiblePanels()
+
+ // Capture WheelEvents before they reach stackView
+ onWheel: (wheel) => {
+ wheel.accepted = true
+ }
+
+ Rectangle {
anchors.fill: parent
- hoverEnabled: true
- onClicked: pannelVisiblity.hideVisiblePanels()
+ anchors.leftMargin: sidebar.visible ? sidebar.width : 0.0
+ anchors.rightMargin: playlistLoader.shown ? playlistLoader.width : 0.0
- // Capture WheelEvents before they reach stackView
- onWheel: (wheel) => {
- wheel.accepted = true
- }
+ color: "black"
+ opacity: 0.4
}
}
@@ -580,7 +625,12 @@ FocusScope {
safeAreaLeftMargin: VLCStyle.applicationHorizontalMargin
- useAcrylic: (VLCStyle.isScreenSmall ? (sidebar.state === "") : true) // See `694d51a7` for the reasoning.
+ useAcrylic: (VLCStyle.isScreenSmall ? (sidebar.state === "" && !sidebarTransition.running) : true) // See `694d51a7` for the reasoning.
+
+ // Otherwise `stackViewParent`'s layer effect becomes the background provider
+ background.visible: useAcrylic || (!MainCtx.backdropBlurRequested() || (GraphicsInfo.shaderType !== GraphicsInfo.RhiShader))
+
+ readonly property bool needExternalBackgroundProvider: (visible && !background?.visible)
NavigationBarContextMenu {
id: navigationBarContextMenu
@@ -707,6 +757,8 @@ FocusScope {
readonly property bool shown: (status === Loader.Ready) && item.visible
+ readonly property bool needExternalBackgroundProvider: (shown && !item?.background?.visible)
+
onVisibleChanged: {
if (!visible) {
stackView.focus = true
@@ -763,6 +815,9 @@ FocusScope {
view.fadingEdge.pixelAlignedForDPR: !miniPlayer.visible
+ // Otherwise `stackViewParent`'s layer effect becomes the background provider
+ background.visible: useAcrylic || (!MainCtx.backdropBlurRequested() || (GraphicsInfo.shaderType !== GraphicsInfo.RhiShader))
+
Navigation.parentItem: g_mainDisplay
Navigation.upItem: localTopbar
Navigation.downItem: loaderUpdatePane
=====================================
modules/gui/qt/maininterface/qml/SideNavigationPane.qml
=====================================
@@ -122,8 +122,8 @@ T.Pane {
colorContext.colorSet: ColorContext.Window
- fadingEdge.backgroundColor: (root.background && (root.background.color.a >= 1.0)) ? root.background.color
- : "transparent"
+ fadingEdge.backgroundColor: (root.background && root.background.visible && (root.background.color.a >= 1.0)) ? root.background.color
+ : "transparent"
component DelegateAnimation : NumberAnimation {
easing.type: Easing.InOutSine
=====================================
modules/gui/qt/playlist/qml/PlaylistPane.qml
=====================================
@@ -375,8 +375,8 @@ T.Pane {
}
}
- fadingEdge.backgroundColor: (root.background && (root.background.color.a >= 1.0)) ? root.background.color
- : Qt.alpha(root.background.color, 0.0)
+ fadingEdge.backgroundColor: (root.background && root.background.visible && (root.background.color.a >= 1.0)) ? root.background.color
+ : Qt.alpha(root.background.color, 0.0)
function mappedSelectedIndexes() : var {
let mappedSelectedIndexes
=====================================
modules/gui/qt/shaders/RectFilter.frag
=====================================
@@ -23,16 +23,28 @@ layout(location = 0) out vec4 fragColor;
layout(std140, binding = 0) uniform buf {
mat4 qt_Matrix;
float qt_Opacity;
- vec4 discardRect;
+
+ // QTBUG-50493, use array when supported:
+ vec4 discardRect0;
+ vec4 discardRect1;
+ vec4 discardRect2;
+ vec4 discardRect3;
};
layout(binding = 1) uniform sampler2D source;
+void rectFilter(vec4 rect)
+{
+ if ((qt_TexCoord0.x >= rect.x && qt_TexCoord0.x <= rect.z) &&
+ (qt_TexCoord0.y >= rect.y && qt_TexCoord0.y <= rect.w))
+ discard;
+}
void main() {
- if (((qt_TexCoord0.x >= discardRect.x && qt_TexCoord0.x <= discardRect.z) &&
- (qt_TexCoord0.y >= discardRect.y && qt_TexCoord0.y <= discardRect.w)))
- discard;
+ rectFilter(discardRect0);
+ rectFilter(discardRect1);
+ rectFilter(discardRect2);
+ rectFilter(discardRect3);
highp vec4 texel = texture(source, qt_TexCoord0);
=====================================
modules/gui/qt/widgets/qml/DualKawaseBlur.qml
=====================================
@@ -51,6 +51,13 @@ Item {
property int mode: DualKawaseBlur.Mode.FourPass
+ // Setting `inhibit` deinitializes the effect.
+ // This property is added for a Qt bug that causes crash when `ShaderEffect` is
+ // destroyed. If you plan to destroy the effect (relevant if `layer.enabled` is
+ // turned off and this effect is used in `layer.effect`), you may want to set
+ // this property to `true` in `Component.onDestruction`.
+ property bool inhibit: false
+
/// <postprocess>
// The following property must be set in order to make other properties respected:
property bool postprocess: false
@@ -271,7 +278,7 @@ Item {
component DefaultShaderEffectSource : ShaderEffectSource {
// This is necessary to release resources even if `sourceItem` becomes null (non-live case):
- parent: sourceItem ? root : null
+ parent: (sourceItem && !root.inhibit) ? root : null
visible: false
live: root.live
@@ -340,7 +347,7 @@ Item {
}
// Qt uses reference counting, otherwise ds1layer may not be released, even if it has no parent (see `QQuickItemPrivate::derefWindow()`):
- source: ((root.mode === DualKawaseBlur.Mode.TwoPass) || !ds1layer.parent) ? null : ds1layer
+ source: ((root.mode === DualKawaseBlur.Mode.TwoPass) || !ds1layer.parent || root.inhibit) ? null : ds1layer
}
DefaultShaderEffectSource {
@@ -394,7 +401,7 @@ Item {
}
// Qt uses reference counting, otherwise ds2layer may not be released, even if it has no parent (see `QQuickItemPrivate::derefWindow()`):
- source: ((root.mode !== DualKawaseBlur.Mode.SixPass) || !ds2layer.parent) ? null : ds2layer
+ source: ((root.mode !== DualKawaseBlur.Mode.SixPass) || !ds2layer.parent || root.inhibit) ? null : ds2layer
}
DefaultShaderEffectSource {
@@ -444,7 +451,7 @@ Item {
}
// Qt uses reference counting, otherwise ds3layer may not be released, even if it has no parent (see `QQuickItemPrivate::derefWindow()`):
- source: ((root.mode !== DualKawaseBlur.Mode.SixPass) || !ds3layer.parent) ? null : ds3layer
+ source: ((root.mode !== DualKawaseBlur.Mode.SixPass) || !ds3layer.parent || root.inhibit) ? null : ds3layer
}
DefaultShaderEffectSource {
@@ -507,6 +514,9 @@ Item {
// Qt uses reference counting, otherwise ds2layer may not be released, even if it has no parent (see `QQuickItemPrivate::derefWindow()`):
source: {
+ if (root.inhibit)
+ return null
+
switch (root.mode) {
case DualKawaseBlur.Mode.FourPass:
if (ds2layer.parent)
@@ -638,7 +648,8 @@ Item {
visible: tpObserver.isValid && root.available
- source: (root.mode === DualKawaseBlur.Mode.TwoPass) ? ds1layer : us1layer
+ source: !root.inhibit ? ((root.mode === DualKawaseBlur.Mode.TwoPass) ? ds1layer : us1layer)
+ : null
property alias tint: root.tint
property alias tintStrength: root.tintStrength
=====================================
modules/gui/qt/widgets/qml/PartialEffect.qml
=====================================
@@ -36,10 +36,15 @@ Item {
// a texture provider without creating an extra layer.
// Make sure that the sampler name is set to "source" (default) if
// this is used as a layer effect.
- property alias source: textureProviderIndirection.source
+ property Item source
- // Rectangular area where the effect should be applied:
- property alias effectRect: textureProviderIndirection.effectRect
+ // Rectangular area(s) where the effect should be applied:
+ property var effectRects
+
+ // If set false, whenever effect rects shrink, the created effects
+ // will be destroyed. It is not recommended to set it to false if
+ // the `effectRects` array size alternates multiple times.
+ property bool persistentEffects: true
// Not mandatory to provide, but when feasible (such as, effect is not
// an isolated inner area), provide it for optimization. When not provided,
@@ -52,7 +57,10 @@ Item {
// is recommended to provide this only in non-opaque cases (blending is set):
property rect sourceVisualRect
- property Item effect
+ // `index` will be provided to the effect, if it has such required property.
+ // Property `inhibit` will be set on destruction, if such property exists.
+ property Component effect
+
property string samplerName: "source"
// Enable blending if source or the effect is not opaque.
@@ -78,6 +86,70 @@ Item {
property real _eDPR: MainCtx.effectiveDevicePixelRatio(Window.window) || 1.0
readonly property int _alignNumber: pixelAlignedForDPR ? Helpers.denominatorForFloat(_eDPR) : 1
+ property list<Item> _effects
+
+ Component.onCompleted: {
+ root.effectRectsChanged.connect(root, root._initializeEffects)
+ root.effectChanged.connect(root, root._initializeEffects)
+
+ _initializeEffects()
+ }
+
+ Component.onDestruction: {
+ for (let i in _effects) { // for .. of is broken in Qt 6.2
+ if (typeof _effects[i].inhibit === 'boolean')
+ _effects[i].inhibit = true
+ }
+ }
+
+ function _initializeEffects() {
+ const effectRectsLength = (effectRects?.length ?? 0)
+
+ const diff = (effectRectsLength - _effects.length)
+ if (diff > 0) {
+ if (effect) {
+ for (let i = 0; i < diff; ++i) {
+ const index = _effects.length
+ const effectItem = effect.createObject(root, {index: index,
+ visible: Qt.binding(() => (root.effectRects?.length > index)),
+ x: Qt.binding(() => (root.effectRects?.length > index) ? root.effectRects[index].x : 0.0),
+ y: Qt.binding(() => (root.effectRects?.length > index) ? root.effectRects[index].y : 0.0),
+ width: Qt.binding(() => (root.effectRects?.length > index) ? Helpers.alignUp(root.effectRects[index].width, root._alignNumber)
+ : 0.0),
+ height: Qt.binding(() => (root.effectRects?.length > index) ? Helpers.alignUp(root.effectRects[index].height, root._alignNumber)
+ : 0.0),
+ blending: Qt.binding(() => root.blending)})
+
+ const effectAcceptsSourceRect = (typeof effectItem.sourceRect !== "undefined") // typeof `rect` is "object"
+ if (effectAcceptsSourceRect) {
+ effectItem[root.samplerName] = Qt.binding(() => effectItem.visible ? root.source : null)
+ effectItem.sourceRect = Qt.binding(() => Qt.rect(effectItem.x,
+ effectItem.y,
+ effectItem.width,
+ effectItem.height))
+ } else {
+ const tpi = tpiComponent.createObject(effectItem, { 'effect': effectItem })
+ console.assert(tpi)
+ effectItem[root.samplerName] = Qt.binding(() => effectItem.visible ? tpi : null)
+ }
+
+ _effects.push(effectItem)
+ }
+ }
+ } else if ((diff < 0) && !persistentEffects) {
+ for (let i = (_effects.length - 1); i >= effectRectsLength; --i) {
+ const effectItem = _effects[i]
+ console.assert(effectItem)
+ console.debug(root, ": destroying effect:", effectItem)
+ if (typeof _effects[i].inhibit === 'boolean')
+ effectItem.inhibit = true
+ effectItem.destroy()
+ }
+
+ _effects.length = effectRectsLength // Truncate the list
+ }
+ }
+
Connections {
target: MainCtx
@@ -103,23 +175,45 @@ Item {
// case it would act as a dummy indirection to prevent the Qt bug.
readonly property Item source: ((MainCtx.qtVersion() < MainCtx.qtVersionCheck(6, 4, 2)) || useSubTexture) ? sourceVisualTextureProviderIndirection : root.source
- readonly property rect discardRect: {
- if (blending && !useSubTexture)
- return Qt.rect(textureProviderIndirection.x / root.width,
- textureProviderIndirection.y / root.height,
- (textureProviderIndirection.x + textureProviderIndirection.width) / root.width,
- (textureProviderIndirection.y + textureProviderIndirection.height) / root.height)
- else // If blending is not enabled, no need to make the normalization calculations
- return Qt.rect(0, 0, 0, 0)
+ readonly property var discardRects: {
+ let ret = []
+
+ if (!blending || useSubTexture) // If blending is not enabled, no need to make the normalization calculations
+ return ret
+
+ for (let i in root._effects) { // for .. of loop is broken in Qt 6.2
+ const effect = root._effects[i]
+ console.assert(effect)
+
+ const rect = Qt.rect(effect.x / root.width,
+ effect.y / root.height,
+ (effect.x + effect.width) / root.width,
+ (effect.y + effect.height) / root.height)
+
+ if (rect.width > 0.0 && rect.height > 0.0)
+ ret.push(rect)
+ }
+
+ // We limit the size to 4 until Qt `ShaderEffect` supports forwarding arrays:
+ if (ret.length > 4)
+ console.debug(root, "Discarding areas in source visual that overlap the effect rectangles is currently limited to 4.")
+
+ return ret
}
+ // QTBUG-50493, ShaderEffect does not support arrays, so for now we manually feed the values:
+ readonly property rect discardRect0: discardRects[0] ?? Qt.rect(0,0,0,0)
+ readonly property rect discardRect1: discardRects[1] ?? Qt.rect(0,0,0,0)
+ readonly property rect discardRect2: discardRects[2] ?? Qt.rect(0,0,0,0)
+ readonly property rect discardRect3: discardRects[3] ?? Qt.rect(0,0,0,0)
+
readonly property bool useSubTexture: (root.sourceVisualRect.width > 0.0 && root.sourceVisualRect.height > 0.0)
supportsAtlasTextures: true
// cullMode: ShaderEffect.BackFaceCulling // QTBUG-136611 (Layering breaks culling with OpenGL)
- fragmentShader: (discardRect.width > 0.0 && discardRect.height > 0.0) ? "qrc:///shaders/RectFilter.frag.qsb" : ""
+ fragmentShader: (discardRects.length > 0) ? "qrc:///shaders/RectFilter.frag.qsb" : ""
TextureProviderIndirection {
id: sourceVisualTextureProviderIndirection
@@ -134,71 +228,23 @@ Item {
}
}
- // We use texture provider that uses QSGTextureView.
- // QSGTextureView is able to denote a viewport that
- // covers a certain area in the source texture.
- // This way, we don't need to have another layer just
- // to clip the source texture.
- TextureProviderIndirection {
- id: textureProviderIndirection
-
- x: effectRect.x
- y: effectRect.y
- width: Helpers.alignUp(effectRect.width, root._alignNumber)
- height: Helpers.alignUp(effectRect.height, root._alignNumber)
-
- readonly property Item sourceItem: source?.sourceItem ?? source
-
- property rect effectRect
-
- textureSubRect: Qt.rect(x * root._eDPR,
- y * root._eDPR,
- width * root._eDPR,
- height * root._eDPR)
-
- readonly property bool effectAcceptsSourceRect: (typeof root.effect?.sourceRect !== "undefined") // typeof `rect` is "object"
-
- // Effect's source is sub-texture through the texture provider, as long as the effect does not accept setting `sourceRect`.
- // Unlike Qt's own effects, our `DualKawaseBlur` supports that. Note that we are not using a `Loader` to not load the
- // indirection in case it is accepted by the effect, since its overhead is minimal. Also note that the texture provider
- // is only created when `textureProvider()` is called, such that when this indirection is actually used (for example as
- // a shader effect source).
- Binding {
- target: root.effect
- property: root.samplerName
- value: textureProviderIndirection.effectAcceptsSourceRect ? root.source : textureProviderIndirection
- }
+ Component {
+ id: tpiComponent
- Binding {
- target: root.effect
- property: "sourceRect"
- when: textureProviderIndirection.effectAcceptsSourceRect
- value: Qt.rect(textureProviderIndirection.x,
- textureProviderIndirection.y,
- textureProviderIndirection.width,
- textureProviderIndirection.height)
- }
+ TextureProviderIndirection {
+ id: textureProviderIndirection
- // Adjust the blending. Currently MultiEffect/FastBlur does not
- // support adjusting it:
- Binding {
- target: root.effect
- when: root.effect && (typeof root.effect.blending === "boolean")
- property: "blending"
- value: root.blending
- }
+ readonly property Item sourceItem: source?.sourceItem ?? source
- // Positioning:
- Binding {
- target: root.effect
- property: "parent"
- value: root
- }
+ // In practice this is the parent item:
+ required property Item effect
+
+ source: root.source
- Binding {
- target: root.effect
- property: "anchors.fill"
- value: textureProviderIndirection
+ textureSubRect: Qt.rect(effect.x * root._eDPR,
+ effect.y * root._eDPR,
+ effect.width * root._eDPR,
+ effect.height * root._eDPR)
}
}
}
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/f97acd05bd12ff0a74518319344149117c800f8b...6588d51b297a1595b7a9c0c79151fadebafae02c
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/f97acd05bd12ff0a74518319344149117c800f8b...6588d51b297a1595b7a9c0c79151fadebafae02c
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