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 1ddf207a authored by camilo higuita's avatar camilo higuita

fixes

parent 5fcb7857
......@@ -308,16 +308,16 @@ Maui.ApplicationWindow
Layout.fillWidth: true
position: ToolBar.Footer
// leftContent: ToolButton
// {
// icon.name: "headphones"
// visible: _drawer.modal
// checked: _drawer.visible
// icon.color: _drawer.visible ? babeColor : Kirigami.Theme.textColor
// onClicked: _drawer.visible = !_drawer.visible
// Kirigami.Theme.highlightColor: babeColor
// // text: qsTr("Now")
// }
leftContent: ToolButton
{
icon.name: "headphones"
visible: _drawer.modal
checked: _drawer.visible
icon.color: _drawer.visible ? babeColor : Kirigami.Theme.textColor
onClicked: _drawer.visible = !_drawer.visible
Kirigami.Theme.highlightColor: babeColor
// text: qsTr("Now")
}
middleContent: [
ToolButton
......@@ -470,8 +470,8 @@ Maui.ApplicationWindow
icon.name: "folder-add"
onTriggered:
{
fmDialog.onlyDirs = false
fmDialog.filterType = Maui.FMList.AUDIO
fmDialog.settings.onlyDirs = false
fmDialog.settings.filterType = Maui.FMList.AUDIO
fmDialog.show(function(paths)
{
vvave.openUrls(paths)
......
......@@ -16,35 +16,26 @@ Maui.Page
property int albumCoverSize: Math.min(120, width * 0.3)
readonly property int albumSpacing: albumCoverSize * 0.3 + space.small
property int albumCoverRadius : radiusV
property int albumCoverRadius : Maui.Style.radiusV
property bool albumCardVisible : true
property alias list: _albumsList
property alias listModel: _albumsModel
property alias grid: grid
property alias holder: holder
property alias holder: grid.holder
property alias count: grid.count
signal albumCoverClicked(string album, string artist)
signal albumCoverPressed(string album, string artist)
signal bgClicked()
// margins: space.medium
// topMargin: space.big
MouseArea
{
anchors.fill: parent
onClicked: bgClicked()
}
Maui.Holder
{
id: holder
visible: grid.count === 0
}
Albums
{
id: _albumsList
......@@ -62,7 +53,7 @@ Maui.Page
onAreaClicked: bgClicked()
adaptContent: true
anchors.fill: parent
anchors.topMargin: space.big
anchors.topMargin: Maui.Style.space.big
itemSize: albumCoverSize
spacing: albumSpacing
......@@ -70,6 +61,8 @@ Maui.Page
cellWidth: albumCoverSize + spacing
cellHeight: albumCoverSize + spacing*2
holder.visible: count === 0
model: _albumsModel
delegate: BabeAlbum
{
......
......@@ -8,7 +8,6 @@ Maui.Page
{
id: control
property alias listView : babeList.listView
property alias model : babeList.model
property alias delegate : babeList.delegate
......@@ -16,28 +15,18 @@ Maui.Page
property alias currentIndex : babeList.currentIndex
property alias currentItem : babeList.currentItem
property alias holder : holder
property alias holder : babeList.holder
property alias section : babeList.section
property bool wasPulled : false
signal pulled()
focus: true
Maui.Holder
{
id: holder
visible: babeList.count === 0
focus: true
}
Maui.ListBrowser
{
id: babeList
anchors.fill: parent
clip: true
holder.visible: count === 0
// listView.highlight: Rectangle
// {
// width: babeList.width
......
......@@ -54,7 +54,6 @@ BabeList
// altToolBars: true
onGroupChanged: groupBy()
focus: true
//headBar.middleStrech: false
......@@ -177,8 +176,6 @@ BabeList
]
}
Maui.Dialog
{
id: _removeDialog
......@@ -207,7 +204,6 @@ BabeList
{
id: contextMenu
MenuSeparator {}
MenuItem
......@@ -364,8 +360,6 @@ BabeList
contextMenu.popup()
rowPressed(index)
console.log(list.get(currentIndex).fav)
}
function saveList()
......
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