Commit 97dedba3 authored by camilo higuita's avatar camilo higuita

youtube view fixes

parent 6772b414
......@@ -320,7 +320,6 @@ Maui.ApplicationWindow
}
middleContent: [
ToolButton
{
id: babeBtnIcon
......@@ -954,7 +953,7 @@ Maui.ApplicationWindow
Layout.bottomMargin: space.big
onIconClicked: _contextMenu.popup()
onExitClicked: clear()
Kirigami.Theme.backgroundColor: "#212121"
// Kirigami.Theme.backgroundColor: "#212121"
// model: BaseModel
// {
......
......@@ -42,19 +42,23 @@ Maui.Page
"qrc:/services/web/YoutubePlayer.qml"
}
Maui.Popup
Maui.Dialog
{
id: configPopup
parent: parent
margins: contentMargins
widthHint: 0.9
heightHint: 0.9
maxHeight: 200
maxWidth: 300
defaultButtons: false
GridLayout
{
anchors.centerIn: parent
width: parent.width*0.8
height: parent.height*0.9
anchors.fill: parent
columns: 1
rows: 6
clip: true
Item
{
......@@ -187,29 +191,27 @@ Maui.Page
trackRating: true
isArtworkRemote: true
allowMenu: false
actionToolBar.visible: false
model: ListModel{}
// appendBtn.visible: false
// playAllBtn.visible: false
// appendBtn.visible: false
// playAllBtn.visible: false
headBar.leftContent: ToolButton
{
icon.name: "edit-clear"
onClicked: clearSearch()
}
headBar.middleContent: Label
{
text: "YouTube"
}
headBar.rightContent: ToolButton
{
id: menuBtn
icon.name: "application-menu"
onClicked: configPopup.open()
}
headBar.rightContent: [
ToolButton
{
id: menuBtn
icon.name: "application-menu"
onClicked: configPopup.open()
},
ToolButton
{
icon.name: "edit-clear"
onClicked: clearSearch()
}
]
onRowClicked:
{
......@@ -268,9 +270,9 @@ Maui.Page
function runSearch(searchTxt)
{
if(searchTxt)
if(searchTxt !== youtubeTable.headBarTitle)
if(searchTxt !== youtubeTable.title)
{
youtubeTable.headBarTitle = searchTxt
youtubeTable.title = searchTxt
youtube.getQuery(searchTxt, Maui.FM.loadSettings("YOUTUBELIMIT", "BABE", 25))
}
}
......@@ -278,8 +280,8 @@ Maui.Page
function clearSearch()
{
searchInput.clear()
youtubeTable.clearTable()
youtubeTable.headBarTitle = ""
youtubeTable.listView.model.clear()
youtubeTable.title = ""
searchRes = []
}
......
......@@ -165,7 +165,7 @@ ItemDelegate
ColumnLayout
{
anchors.fill: parent
spacing: space.tiny
// spacing: space.tiny
Item
{
......
......@@ -39,6 +39,7 @@ BabeList
property alias playAllBtn : playAllBtn
property alias appendBtn : appendBtn
property alias actionToolBar: _actionToolBar
signal rowClicked(int index)
signal rowPressed(int index)
......@@ -60,6 +61,7 @@ BabeList
headBar.rightSretch: false
headBar.leftContent: Kirigami.ActionToolBar
{
id: _actionToolBar
position: ToolBar.Header
Layout.fillWidth: true
actions: [
......
......@@ -21,7 +21,7 @@ BabeList
property alias list: _playlistsList
signal playSync(int index)
title: "Playlists"
// title: "Playlists"
Maui.NewDialog
{
......@@ -32,8 +32,8 @@ BabeList
rejectButton.visible: false
}
headBar.rightContent: Kirigami.ActionToolBar
//headBar.middleStrech: false
headBar.leftContent: Kirigami.ActionToolBar
{
Layout.fillWidth: true
actions:
......
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