[vlc-commits] [Git][videolan/vlc][master] 6 commits: qml: expose `enable{Beginning, End}Fade` in `BrowseDeviceView.qml`
Steve Lhomme (@robUx4)
gitlab at videolan.org
Fri May 2 09:53:57 UTC 2025
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
76a18645 by Fatih Uzunoglu at 2025-05-02T09:07:29+00:00
qml: expose `enable{Beginning,End}Fade` in `BrowseDeviceView.qml`
- - - - -
c81bbeac by Fatih Uzunoglu at 2025-05-02T09:07:29+00:00
qml: disable end fade if mini player is visible in `BrowseDisplay.qml`
- - - - -
30618a32 by Fatih Uzunoglu at 2025-05-02T09:07:29+00:00
qml: disable end fade if mini player is visible in `DiscoverUrlDisplay.qml`
and set missing display margin end.
- - - - -
deca75fe by Fatih Uzunoglu at 2025-05-02T09:07:29+00:00
qml: disable end fade if mini player is visible in `MusicArtistsAlbums.qml`
- - - - -
c617869b by Fatih Uzunoglu at 2025-05-02T09:07:29+00:00
qml: disable end fade if mini player is visible in `MusicTracksDisplay.qml`
- - - - -
a259a9ab by Fatih Uzunoglu at 2025-05-02T09:07:29+00:00
qml: disable end fade if mini player is visible in `ServicesManage.qml`
- - - - -
6 changed files:
- modules/gui/qt/medialibrary/qml/MusicArtistsAlbums.qml
- modules/gui/qt/medialibrary/qml/MusicTracksDisplay.qml
- modules/gui/qt/network/qml/BrowseDeviceView.qml
- modules/gui/qt/network/qml/BrowseDisplay.qml
- modules/gui/qt/network/qml/DiscoverUrlDisplay.qml
- modules/gui/qt/network/qml/ServicesManage.qml
Changes:
=====================================
modules/gui/qt/medialibrary/qml/MusicArtistsAlbums.qml
=====================================
@@ -248,6 +248,8 @@ FocusScope {
// To get blur effect while scrolling in mainview
displayMarginEnd: g_mainDisplay.displayMargin
+ fadingEdge.enableEndFade: (g_mainDisplay.hasMiniPlayer === false)
+
Navigation.parentItem: root
Navigation.rightAction: function() {
=====================================
modules/gui/qt/medialibrary/qml/MusicTracksDisplay.qml
=====================================
@@ -84,6 +84,8 @@ FocusScope {
// To get blur effect while scrolling in mainview
displayMarginEnd: g_mainDisplay.displayMargin
+
+ fadingEdge.enableEndFade: (g_mainDisplay.hasMiniPlayer === false)
}
Widgets.EmptyLabelButton {
=====================================
modules/gui/qt/network/qml/BrowseDeviceView.qml
=====================================
@@ -55,6 +55,10 @@ FocusScope {
readonly property bool hasGridListMode: true
+ // NOTE: Currently only respected by the table view:
+ property bool enableBeginningFade: true
+ property bool enableEndFade: true
+
property Component header: Widgets.ViewHeader {
view: root
@@ -287,6 +291,9 @@ FocusScope {
displayMarginEnd: root.displayMarginEnd
+ fadingEdge.enableBeginningFade: root.enableBeginningFade
+ fadingEdge.enableEndFade: root.enableEndFade
+
model: root.model
sortModel: (availableRowWidth < VLCStyle.colWidth(4)) ? _modelSmall
=====================================
modules/gui/qt/network/qml/BrowseDisplay.qml
=====================================
@@ -103,6 +103,8 @@ Widgets.PageLoader {
displayMarginEnd: g_mainDisplay.displayMargin
+ enableEndFade: (g_mainDisplay.hasMiniPlayer === false)
+
model: StandardPathModel {
sortCriteria: MainCtx.sort.criteria
sortOrder: MainCtx.sort.order
@@ -131,6 +133,8 @@ Widgets.PageLoader {
displayMarginEnd: g_mainDisplay.displayMargin
+ enableEndFade: (g_mainDisplay.hasMiniPlayer === false)
+
model: NetworkDeviceModel {
ctx: MainCtx
=====================================
modules/gui/qt/network/qml/DiscoverUrlDisplay.qml
=====================================
@@ -43,6 +43,11 @@ FocusScope {
property int leftPadding: 0
property int rightPadding: 0
+ property int displayMarginEnd: g_mainDisplay.displayMargin
+
+ property bool enableBeginningFade: true
+ property bool enableEndFade: (g_mainDisplay.hasMiniPlayer === false)
+
//---------------------------------------------------------------------------------------------
// Functions
//---------------------------------------------------------------------------------------------
@@ -117,6 +122,11 @@ FocusScope {
return root.rightPadding
})
+ item.displayMarginEnd = Qt.binding(() => { return root.displayMarginEnd })
+
+ item.fadingEdge.enableBeginningFade = Qt.binding(() => { return root.enableBeginningFade })
+ item.fadingEdge.enableEndFade = Qt.binding(() => { return root.enableEndFade })
+
item.Navigation.upItem = searchField
item.Navigation.parentItem = root
=====================================
modules/gui/qt/network/qml/ServicesManage.qml
=====================================
@@ -69,6 +69,8 @@ Widgets.ListViewExt {
// To get blur effect while scrolling in mainview
displayMarginEnd: g_mainDisplay.displayMargin
+ fadingEdge.enableEndFade: (g_mainDisplay.hasMiniPlayer === false)
+
delegate: Rectangle {
width: servicesView.width - VLCStyle.margin_large * 2
height: row.implicitHeight + VLCStyle.margin_small * 2
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/562bc831b2668901fb1df202990d250600441ef2...a259a9abbdc5ce5f07c10afd5787db65e3c122a6
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/562bc831b2668901fb1df202990d250600441ef2...a259a9abbdc5ce5f07c10afd5787db65e3c122a6
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