Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 1df13d18 authored by camilo higuita's avatar camilo higuita

more fixes on the delegates

parent f667fbc5
......@@ -42,6 +42,7 @@ Maui.GridItemDelegate
{
anchors.fill: parent
spacing: 0
Item
{
Layout.alignment: Qt.AlignCenter
......@@ -54,7 +55,7 @@ Maui.GridItemDelegate
anchors.fill: card
visible: card.visible
horizontalOffset: 0
verticalOffset: 3
verticalOffset: 0
radius: 8.0
samples: 17
color: "#80000000"
......@@ -138,7 +139,7 @@ Maui.GridItemDelegate
Layout.fillWidth: true
Layout.fillHeight: true
text: list.query === Albums.ALBUMS ? model.album : model.artist
visible: showLabels
visible: showLabels && (albumSize > 50)
horizontalAlignment: Qt.AlignHCenter
elide: Text.ElideRight
font.pointSize: Maui.Style.fontSizes.default
......@@ -154,7 +155,7 @@ Maui.GridItemDelegate
Layout.fillHeight: true
text: list.query === Albums.ALBUMS ? model.artist : undefined
visible: showLabels && text
visible: showLabels && text && (albumSize > 70)
horizontalAlignment: Qt.AlignHCenter
elide: Text.ElideRight
font.pointSize: Maui.Style.fontSizes.medium
......
......@@ -67,8 +67,10 @@ Maui.Page
albumCard: albumCardVisible
padding: Maui.Style.space.small
width: grid.cellWidth
height: width
height: grid.cellHeight
width: grid.cellWidth
Connections
{
......
......@@ -27,47 +27,6 @@ Maui.Page
id: babeList
anchors.fill: parent
holder.visible: count === 0
// listView.highlight: Rectangle
// {
// width: babeList.width
// height: babeList.currentItem.height
// color: highlightColor
// }
// Keys.onUpPressed: decrementCurrentIndex()
// Keys.onDownPressed: incrementCurrentIndex()
// Keys.onReturnPressed: rowClicked(currentIndex)
// Keys.onEnterPressed: quickPlayTrack(currentIndex)
// boundsBehavior: !isMobile? Flickable.StopAtBounds : Flickable.OvershootBounds
// flickableDirection: Flickable.AutoFlickDirection
// snapMode: isMobile? ListView.SnapToItem : ListView.NoSnap
// addDisplaced: Transition
// {
// NumberAnimation { properties: "x,y"; duration: 100 }
// }
// ScrollBar.vertical:BabeScrollBar { visible: !isMobile}
// onContentYChanged:
// {
// if(contentY < -120)
// wasPulled = true
// if(contentY == 0 && wasPulled)
// { pulled(); wasPulled = false}
// }
// Scroll is too fast on desktop, see QTBUG-56075
// https://bugreports.qt.io/browse/QTBUG-56075
// ScrollHelper
// {
// enabled: !isMobile
// id: scrollHelper
// flickable: babeList
// anchors.fill: babeList
// }
topMargin: Maui.Style.space.medium
}
}
This diff is collapsed.
......@@ -14,11 +14,10 @@ Item
Maui.GridBrowser
{
id: browser
// headBarTitle: qsTr("Source folders")
anchors.margins: space.big
anchors.margins: Maui.Style.space.big
anchors.fill: parent
showEmblem: false
model: ListModel {}
model: ListModel {}
onItemClicked:
{
var item = browser.model.get(index)
......@@ -27,37 +26,38 @@ model: ListModel {}
filter()
_listDialog.open()
}
}
Maui.Holder
{
anchors.fill: parent
visible: !browser.count
emoji: "qrc:/assets/MusicCloud.png"
isMask: false
title : "No Folders!"
body: "Add new music to your sources to browse by folders"
emojiSize: iconSizes.huge
}
Maui.Dialog
Maui.Holder
{
anchors.fill: parent
visible: !browser.count
emoji: "qrc:/assets/MusicCloud.png"
isMask: false
title : "No Folders!"
body: "Add new music to your sources to browse by folders"
emojiSize: iconSizes.huge
}
Maui.Dialog
{
id: _listDialog
parent: parent
maxHeight: maxWidth
maxWidth: Maui.Style.unit * 600
defaultButtons: false
page.padding: 0
BabeTable
{
id: _listDialog
parent: parent
maxHeight: maxWidth
maxWidth: unit * 600
defaultButtons: false
page.padding: 0
BabeTable
{
id: _filterList
anchors.fill: parent
coverArtVisible: true
holder.emoji: "qrc:/assets/MusicCloud.png"
holder.isMask: false
holder.title : "No Tracks!"
holder.body: "This source folder seems to be empty!"
holder.emojiSize: iconSizes.huge
}
id: _filterList
anchors.fill: parent
coverArtVisible: true
holder.emoji: "qrc:/assets/MusicCloud.png"
holder.isMask: false
holder.title : "No Tracks!"
holder.body: "This source folder seems to be empty!"
holder.emojiSize: Maui.Style.iconSizes.huge
}
}
......
......@@ -28,7 +28,7 @@ Maui.Dialog
onAccepted:
{
fmDialog.onlyDirs = true
fmDialog.settings.onlyDirs = true
fmDialog.show(function(paths)
{
......
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