Commit 390618fd authored by Camilo higuita's avatar Camilo higuita

move away from maui toolbuttons

parent 57dd52ff
......@@ -380,7 +380,7 @@ Layout.fillWidth: true
}
// leftIcon.iconColor: currentView === viewsIndex.search ? babeColor : altColorText
// leftIcon.icon.color: currentView === viewsIndex.search ? babeColor : altColorText
onSearchButtonClicked:
{
currentView = viewsIndex.search
......
......@@ -17,17 +17,16 @@ BabeList
headBarExit: false
headBarTitle: isLinked ?link.getIp() : qsTr("Disconnected")
headBar.leftContent: Maui.ToolButton
headBar.leftContent: ToolButton
{
anim : true
iconName : "view-refresh"
icon.name : "view-refresh"
onClicked : refreshPlaylists()
}
headBar.rightContent: Maui.ToolButton
headBar.rightContent: ToolButton
{
id: menuBtn
iconName: "application-menu"
icon.name: "application-menu"
onClicked: linkingConf.open()
}
......
......@@ -191,10 +191,10 @@ ColumnLayout
}
Maui.ToolButton
ToolButton
{
Layout.rightMargin: contentMargins
iconName: "edit-clear"
icon.name: "edit-clear"
onClicked: searchInput.clear()
}
......
......@@ -25,9 +25,9 @@ Page
Layout.fillHeight: true
headBarExit: false
headBar.leftContent: Maui.ToolButton
headBar.leftContent: ToolButton
{
iconName: "internet-services"
icon.name: "internet-services"
onClicked:if(!isAndroid)
{
......@@ -67,10 +67,10 @@ Page
}
Maui.ToolButton
ToolButton
{
Layout.rightMargin: contentMargins
iconName: "edit-clear"
icon.name: "edit-clear"
onClicked: searchInput.clear()
}
......
......@@ -198,10 +198,10 @@ Maui.Page
// appendBtn.visible: false
// playAllBtn.visible: false
headBar.rightContent: Maui.ToolButton
headBar.rightContent: ToolButton
{
id: menuBtn
iconName: "application-menu"
icon.name: "application-menu"
onClicked: configPopup.open()
}
......
......@@ -20,15 +20,15 @@ Maui.Page
headBar.rightContent: [
Maui.ToolButton
ToolButton
{
iconName : "link"
icon.name : "link"
onClicked: webView.url = currentYt.url.replace("embed/", "watch?v=")
},
Maui.ToolButton
ToolButton
{
iconName : "download"
icon.name : "download"
onClicked: bae.getYoutubeTrack(JSON.stringify(currentYt))
}
]
......
......@@ -4,7 +4,7 @@ import QtQuick.Controls 2.2
ScrollBar
{
id: scrollBar
size: 0.3
icon.width: 0.3
position: 0.2
active: true
focus: true
......
......@@ -68,10 +68,10 @@ Maui.Dialog
}
}
Maui.ToolButton
ToolButton
{
iconName: "checkbox"
iconColor: textColor
icon.name: "checkbox"
icon.color: textColor
onClicked: addPlaylist()
}
}
......
......@@ -77,19 +77,19 @@ SwipeDelegate
anchors.right: parent.right
spacing: space.medium
Maui.ToolButton
ToolButton
{
iconName: "documentinfo"
icon.name: "documentinfo"
anchors.verticalCenter: parent.verticalCenter
onClicked: swipe.close()
}
Maui.ToolButton
ToolButton
{
iconName: "love"
icon.name: "love"
anchors.verticalCenter: parent.verticalCenter
iconColor: model.fav === "1" ? babeColor : textColor
icon.color: model.fav === "1" ? babeColor : textColor
onClicked:
{
list.fav(index, !(list.get(index).fav == "1"))
......@@ -97,9 +97,9 @@ SwipeDelegate
}
}
Maui.ToolButton
ToolButton
{
iconName: "view-media-recent"
icon.name: "view-media-recent"
anchors.verticalCenter: parent.verticalCenter
onClicked:
......@@ -109,9 +109,9 @@ SwipeDelegate
}
}
Maui.ToolButton
ToolButton
{
iconName: "media-playback-start"
icon.name: "media-playback-start"
anchors.verticalCenter: parent.verticalCenter
onClicked:
......@@ -231,15 +231,14 @@ SwipeDelegate
height: parent.height
Layout.leftMargin: space.small
Maui.ToolButton
ToolButton
{
id: playBtn
anchors.centerIn: parent
iconName: "media-playback-start"
iconColor: labelColor
size: iconSizes.medium
icon.name: "media-playback-start"
icon.color: labelColor
icon.width: iconSizes.medium
onClicked: play()
anim: true
}
}
......@@ -389,13 +388,13 @@ SwipeDelegate
onPositionChanged: swipe.position = Math.min(0, Math.max(-delegateRoot.width + height, delegateRoot.background.x - (startMouseX - mouse.x)));
Maui.ToolButton
ToolButton
{
id: menuBtn
visible: true
anchors.centerIn: parent
iconName: "overflow-menu"
iconColor: labelColor
icon.name: "overflow-menu"
icon.color: labelColor
onClicked: swipe.position < 0 ? swipe.close() : swipe.open(SwipeDelegate.Right)
}
......
......@@ -160,13 +160,13 @@ Menu
{
anchors.fill: parent
Maui.ToolButton
ToolButton
{
Layout.fillWidth: true
Layout.fillHeight: true
iconName: starIcon
size: iconSizes.medium
iconColor: rate >= 1 ? starColor :starReg
icon.name: starIcon
icon.width: iconSizes.medium
icon.color: rate >= 1 ? starColor :starReg
onClicked:
{
rate = 1
......@@ -175,13 +175,13 @@ Menu
}
}
Maui.ToolButton
ToolButton
{
Layout.fillWidth: true
Layout.fillHeight: true
size: iconSizes.medium
iconName: starIcon
iconColor: rate >= 2 ? starColor :starReg
icon.width: iconSizes.medium
icon.name: starIcon
icon.color: rate >= 2 ? starColor :starReg
onClicked:
{
rate = 2
......@@ -190,13 +190,13 @@ Menu
}
}
Maui.ToolButton
ToolButton
{
Layout.fillWidth: true
Layout.fillHeight: true
size: iconSizes.medium
iconName: starIcon
iconColor: rate >= 3 ? starColor :starReg
icon.width: iconSizes.medium
icon.name: starIcon
icon.color: rate >= 3 ? starColor :starReg
onClicked:
{
rate = 3
......@@ -205,13 +205,13 @@ Menu
}
}
Maui.ToolButton
ToolButton
{
Layout.fillWidth: true
Layout.fillHeight: true
size: iconSizes.medium
iconName: starIcon
iconColor: rate >= 4 ? starColor :starReg
icon.width: iconSizes.medium
icon.name: starIcon
icon.color: rate >= 4 ? starColor :starReg
onClicked:
{
rate = 4
......@@ -220,13 +220,13 @@ Menu
}
}
Maui.ToolButton
ToolButton
{
Layout.fillWidth: true
Layout.fillHeight: true
size: iconSizes.medium
iconName: starIcon
iconColor: rate >= 5 ? starColor :starReg
icon.width: iconSizes.medium
icon.name: starIcon
icon.color: rate >= 5 ? starColor :starReg
onClicked:
{
rate = 5
......
[Project]
CreatedFrom=CMakeLists.txt
Manager=KDevCMakeManager
Name=vvave
......@@ -86,12 +86,12 @@ BabeGrid
// headBar.rightContent: [
// Maui.ToolButton
// ToolButton
// {
// id: appendBtn
// visible: headBar.visible && albumsViewGrid.count > 0
// anim : true
// iconName : "media-playlist-append"//"media-repeat-track-amarok"
// icon.name : "media-playlist-append"//"media-repeat-track-amarok"
// onClicked: appendAll()
// }
// ]
......
......@@ -48,11 +48,11 @@ BabeTable
}
// footBar.leftContent: Maui.ToolButton
// footBar.leftContent: ToolButton
// {
// visible: true
// iconName: "view-filter"
// iconColor: autoSuggestions ? babeColor : textColor
// icon.name: "view-filter"
// icon.color: autoSuggestions ? babeColor : textColor
// onClicked:
// {
// autoSuggestions = !autoSuggestions
......
......@@ -118,65 +118,65 @@ Menu
{
anchors.fill: parent
Maui.ToolButton
ToolButton
{
Layout.fillWidth: true
Layout.fillHeight: true
iconName: starIcon
size: iconSizes.medium
iconColor: rate >= 1 ? starColor :starReg
icon.name: starIcon
icon.width: iconSizes.medium
icon.color: rate >= 1 ? starColor :starReg
onClicked:
{
rate = 1
}
}
Maui.ToolButton
ToolButton
{
Layout.fillWidth: true
Layout.fillHeight: true
size: iconSizes.medium
iconName: starIcon
iconColor: rate >= 2 ? starColor :starReg
icon.width: iconSizes.medium
icon.name: starIcon
icon.color: rate >= 2 ? starColor :starReg
onClicked:
{
rate = 2
}
}
Maui.ToolButton
ToolButton
{
Layout.fillWidth: true
Layout.fillHeight: true
size: iconSizes.medium
iconName: starIcon
iconColor: rate >= 3 ? starColor :starReg
icon.width: iconSizes.medium
icon.name: starIcon
icon.color: rate >= 3 ? starColor :starReg
onClicked:
{
rate = 3
}
}
Maui.ToolButton
ToolButton
{
Layout.fillWidth: true
Layout.fillHeight: true
size: iconSizes.medium
iconName: starIcon
iconColor: rate >= 4 ? starColor :starReg
icon.width: iconSizes.medium
icon.name: starIcon
icon.color: rate >= 4 ? starColor :starReg
onClicked:
{
rate = 4
}
}
Maui.ToolButton
ToolButton
{
Layout.fillWidth: true
Layout.fillHeight: true
size: iconSizes.medium
iconName: starIcon
iconColor: rate >= 5 ? starColor :starReg
icon.width: iconSizes.medium
icon.name: starIcon
icon.color: rate >= 5 ? starColor :starReg
onClicked:
{
rate = 5
......
......@@ -32,13 +32,13 @@ Maui.Popup
anchors.fill: parent
spacing: 0
Maui.ToolButton
ToolButton
{
Layout.alignment: Qt.AlignLeft
Layout.leftMargin: contentMargins
iconColor: darkTextColor
icon.color: darkTextColor
anim : true
iconName : "dialog-close"
icon.name : "dialog-close"
onClicked : close()
}
......
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