Commit fdf80842 authored by Camilo Higuita's avatar Camilo Higuita

better slider for progressbar to darg on mobile

parent 89da8a53
......@@ -245,7 +245,6 @@ QVariant Babe::loadSetting(const QString &key, const QString &group, const QVari
void Babe::saveSetting(const QString &key, const QVariant &value, const QString &group)
{
qDebug()<<key<<value<<group;
BAE::saveSettings(key, value, group);
}
......
......@@ -112,7 +112,7 @@ Kirigami.ApplicationWindow
"playlists" : 4,
"search" : 5
})
property bool mainlistEmpty : mainPlaylist.table.count > 0 ? true : false
property bool mainlistEmpty : !mainPlaylist.table.count > 0
/*PROPS*/
property int toolBarIconSize: bae.loadSetting("ICON_SIZE", "BABE", iconSizes.medium)
......@@ -126,7 +126,7 @@ Kirigami.ApplicationWindow
property string syncPlaylist : ""
property bool sync : false
property string infoMsg : ""
property bool infoLabels : true
property bool infoLabels : bae.loadSetting("PLAYBACKINFO", "BABE", false) == "true" ? true : false
/*SIGNALS*/
signal missingAlert(var track)
......@@ -330,7 +330,7 @@ Kirigami.ApplicationWindow
{
id: progressBar
// height: 10
height: 10
width: parent.width
z: 999
anchors.left: parent.left
......@@ -349,7 +349,7 @@ Kirigami.ApplicationWindow
x: progressBar.leftPadding
y: progressBar.y
implicitWidth: 200
implicitHeight: 4
implicitHeight: 10
width: progressBar.availableWidth
height: implicitHeight
color: "transparent"
......@@ -401,7 +401,7 @@ Kirigami.ApplicationWindow
rowSpacing: 0
columnSpacing: 0
rows: 2
columns: 3
columns: 2
Item
......@@ -422,7 +422,7 @@ Kirigami.ApplicationWindow
Image
{
id: miniArtwork
visible: ((!pageStack.wideMode && pageStack.currentIndex !== 0) || !mainPlaylist.cover.visible) && mainlistEmpty
visible: ((!pageStack.wideMode && pageStack.currentIndex !== 0) || !mainPlaylist.cover.visible) && !mainlistEmpty
height: headerHeight
width: headerHeight
......@@ -463,7 +463,7 @@ Kirigami.ApplicationWindow
{
id: playbackInfo
visible: mainlistEmpty && infoLabels
visible: !mainlistEmpty && infoLabels
// anchors.top: playIcon.bottom
// anchors.horizontalCenter: playIcon.horizontalCenter
width: parent.width
......@@ -538,18 +538,7 @@ Kirigami.ApplicationWindow
}
Item
{
Layout.alignment: Qt.AlignLeft
Layout.fillHeight: true
Layout.maximumWidth: miniArtwork.visible ? headerHeight : 0
Layout.minimumWidth: miniArtwork.visible ? headerHeight : 0
Layout.minimumHeight: miniArtwork.visible ? headerHeight : 0
Layout.maximumHeight: miniArtwork.visible ? headerHeight : 0
Layout.row: 1
Layout.rowSpan: 2
Layout.column: 3
}
}
}
......
......@@ -46,7 +46,7 @@ function stop()
{
player.stop()
root.progressBar.value = 0
root.mainlistEmpty = false
root.mainlistEmpty = true
root.title = "Babe..."
// root.playIcon.iconName = "media-playback-start"
......
......@@ -90,7 +90,7 @@ BabeDialog
for(var i in playlists)
playlistsList.model.append(playlists[i])
newPlaylistField.forceActiveFocus()
// newPlaylistField.forceActiveFocus()
}
onAccepted:
......
......@@ -64,7 +64,7 @@ Item
Layout.fillWidth: true
Layout.preferredHeight: visible ? coverSize : 0
Layout.maximumHeight: 300
visible: root.mainlistEmpty
visible: !root.mainlistEmpty
Rectangle
{
visible: cover.visible
......
......@@ -146,8 +146,9 @@ Kirigami.GlobalDrawer
checkable: true
onToggled:
{
// bae.saveSetting("BRAINZ", checked === true ? true : false, "BABE")
infoLabels = checked
bae.saveSetting("PLAYBACKINFO", infoLabels ? true : false, "BABE")
}
}
}
......
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