Commit d0de31d4 authored by Prince Gupta's avatar Prince Gupta 💬 Committed by Jean-Baptiste Kempf
Browse files

qml: use hardbounds for main views

for blur effect behind miniplayer, use displaymarginEnd
property and disable clipping in views

fixes #25679
fixes #25678
parent 7367e134
......@@ -212,6 +212,7 @@ Widgets.NavigableFocusScope {
top: parent.top
left: parent.left
bottom: parent.bottom
bottomMargin: miniPlayer.height
right: playlistColumn.visible ? playlistColumn.left : playlistColumn.right
rightMargin: (mainInterface.playlistDocked && mainInterface.playlistVisible)
? 0
......
......@@ -22,9 +22,5 @@ import "qrc:///widgets/" as Widgets
Widgets.ExpandGridView {
id: root
gridScrollBar.bottomPadding: footerItem.height
footerDelegate: MiniPlayerBottomMargin {
width: root.width
}
displayMarginEnd: miniPlayer.height
}
......@@ -23,9 +23,5 @@ import "qrc:///widgets/" as Widgets
Widgets.KeyNavigableTableView {
id: root
listScrollBar.bottomPadding: footerItem.height
footer: MiniPlayerBottomMargin {
width: root.width
}
displayMarginEnd: miniPlayer.height
}
......@@ -119,9 +119,7 @@ Widgets.NavigableFocusScope {
root.width * .5)
focus: true
footer: MainInterface.MiniPlayerBottomMargin {
}
displayMarginEnd: miniPlayer.height // to get blur effect while scrolling in mainview
navigationParent: root
navigationRightItem: albumSubView
navigationCancel: function() {
......
......@@ -65,9 +65,7 @@ Widgets.NavigableFocusScope {
else
tracklistdisplay_id.currentIndex = 0;
}
listScrollBar.bottomPadding: footerItem.height
footer: MainInterface.MiniPlayerBottomMargin {
}
displayMarginEnd: miniPlayer.height // to get blur effect while scrolling in mainview
}
EmptyLabel {
......
......@@ -144,8 +144,6 @@ Widgets.NavigableFocusScope {
anchors.fill: parent
clip: true
initialItem: (mainInterface.gridView) ? grid : list
focus: (model.count !== 0)
......
......@@ -322,8 +322,8 @@ Widgets.NavigableFocusScope {
Widgets.StackViewExt {
id: view
anchors.fill:parent
clip: true
focus: true
initialItem: mainInterface.gridView ? gridComponent : tableComponent
......
......@@ -87,8 +87,8 @@ Widgets.NavigableFocusScope {
Widgets.StackViewExt {
id: view
anchors.fill:parent
clip: true
focus: true
onCurrentItemChanged: {
......
......@@ -120,10 +120,6 @@ Widgets.NavigableFocusScope {
_centerFlickableOnItem(lanLabel.y, lanSection.y + lanSection.height)
}
}
MainInterface.MiniPlayerBottomMargin {
width: flickable.width
}
}
}
......
......@@ -150,10 +150,7 @@ Widgets.PageLoader {
leftMargin: VLCStyle.margin_large
rightMargin: VLCStyle.margin_large
spacing: VLCStyle.margin_xsmall
footer: MainInterface.MiniPlayerBottomMargin {
width: servicesView.width
}
displayMarginEnd: miniPlayer.height // to get blur effect while scrolling in mainview
delegate: Rectangle {
width: servicesView.width - VLCStyle.margin_large * 2
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment