Commit 53fdc290 authored by Camilo Higuita's avatar Camilo Higuita

add icons to menus

parent 6e71fd5a
......@@ -137,6 +137,8 @@ Maui.ApplicationWindow
Layout.minimumWidth: implicitWidth
currentIndex : swipeView.currentIndex
onCurrentIndexChanged: swipeView.currentIndex = currentIndex
// strech: false
// Layout.fillWidth: true
hiddenActions: [
Action
......@@ -277,8 +279,6 @@ Maui.ApplicationWindow
// }
// },
MenuSeparator{},
MenuItem
{
text: qsTr("Sources")
......@@ -294,9 +294,7 @@ Maui.ApplicationWindow
{
_dialogLoader.sourceComponent = _fmDialogComponent
root.dialog.settings.onlyDirs = false
root.dialog.currentPath = "file:///home/camilo/Music"
root.dialog.settings.filterType = Maui.FMList.AUDIO
console.log("SETTIGN FILTER TYPE FISR", root.dialog.settings.filterType, Maui.FMList.AUDIO)
root.dialog.show(function(paths)
{
vvave.openUrls(paths)
......
......@@ -7,7 +7,7 @@ import AlbumsList 1.0
Maui.Page
{
id: gridPage
id: control
property int albumCoverSize: Math.min(160, width * 0.3)
property int albumCoverRadius : Maui.Style.radiusV
......@@ -80,21 +80,26 @@ Maui.Page
target: albumDelegate
onClicked:
{
var album = _albumsList.get(index).album
var artist = _albumsList.get(index).artist
const album = _albumsList.get(index).album
const artist = _albumsList.get(index).artist
albumCoverClicked(album, artist)
grid.currentIndex = index
}
onPressAndHold:
{
var album = grid.model.get(index).album
var artist = grid.model.get(index).artist
const album = grid.model.get(index).album
const artist = grid.model.get(index).artist
albumCoverPressed(album, artist)
}
}
}
}
background: Rectangle
{
color: Kirigami.Theme.backgroundColor
}
}
}
......@@ -22,6 +22,7 @@ Maui.Page
signal pulled()
Maui.ListBrowser
{
id: babeList
......@@ -30,7 +31,12 @@ Maui.Page
topMargin: Maui.Style.space.medium
listView.headerPositioning: Kirigami.Settings.isMobile ? ListView.PullBackHeader : ListView.OverlayHeader
listView.footerPositioning: ListView.OverlayFooter
Kirigami.Theme.colorSet: Kirigami.Theme.Window
Kirigami.Theme.colorSet: Kirigami.Theme.View
Kirigami.Theme.inherit: false
background: Rectangle
{
color: Kirigami.Theme.backgroundColor
}
}
}
......@@ -41,6 +41,7 @@ Menu
MenuItem
{
text: qsTr("Select...")
icon.name: "item-select"
onTriggered:
{
H.addToSelection(list.get(listView.currentIndex))
......@@ -57,6 +58,7 @@ Menu
MenuItem
{
text: qsTr("Play")
icon.name: "media-playlist-play"
onTriggered:
{
playClicked()
......@@ -67,6 +69,7 @@ Menu
MenuItem
{
text: qsTr("Queue")
icon.name: "view-media-recent"
onTriggered:
{
queueClicked()
......@@ -77,6 +80,7 @@ Menu
MenuItem
{
text: qsTr("Append")
icon.name: "media-playlist-append"
onTriggered:
{
appendClicked()
......@@ -87,6 +91,7 @@ Menu
MenuItem
{
text: qsTr("Remove")
icon.name: "edit-clear"
onTriggered:
{
removeClicked()
......@@ -100,6 +105,7 @@ Menu
MenuItem
{
text: !fav ? qsTr("Fav it"): qsTr("UnFav it")
icon.name: "love"
onTriggered:
{
favClicked()
......@@ -110,6 +116,7 @@ Menu
MenuItem
{
text: qsTr("Add to")
icon.name: "document-save"
onTriggered:
{
saveToClicked()
......@@ -121,7 +128,8 @@ Menu
MenuItem
{
text: qsTr("Share...")
text: qsTr("Share")
icon.name: "document-share"
onTriggered:
{
shareClicked()
......@@ -144,6 +152,7 @@ Menu
MenuItem
{
text: qsTr("Show in folder")
icon.name: "folder-open"
visible: !isAndroid
onTriggered:
{
......@@ -157,7 +166,8 @@ Menu
MenuItem
{
visible: false
text: qsTr("Edit.")
text: qsTr("Edit")
icon.name: "document-edit"
onTriggered:
{
editClicked()
......@@ -179,6 +189,7 @@ Menu
MenuItem
{
text: qsTr("Delete")
icon.name: "edit-delete"
Kirigami.Theme.textColor: Kirigami.Theme.negativeTextColor
onTriggered:
{
......
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