Touch: Cleanup UI
This commit is contained in:
parent
0fafc27145
commit
7e7bfbe69e
6 changed files with 24 additions and 63 deletions
|
@ -81,6 +81,11 @@ SlidePage {
|
|||
title: episodesPage.title
|
||||
model: GPodderEpisodeListModel { id: episodeListModel }
|
||||
|
||||
PPlaceholder {
|
||||
text: 'No episodes'
|
||||
visible: episodeList.count === 0
|
||||
}
|
||||
|
||||
delegate: EpisodeItem { }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
/**
|
||||
*
|
||||
* gPodder QML UI Reference Implementation
|
||||
* Copyright (c) 2013, Thomas Perl <m@thp.io>
|
||||
* Copyright (c) 2014, Thomas Perl <m@thp.io>
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
|
@ -20,12 +20,11 @@
|
|||
|
||||
import QtQuick 2.0
|
||||
|
||||
SlidePage {
|
||||
SlidePageHeader { title: 'Settings' }
|
||||
import 'common/constants.js' as Constants
|
||||
|
||||
|
||||
PLabel {
|
||||
anchors.centerIn: parent
|
||||
text: 'TODO'
|
||||
font.pixelSize: 40 * pgst.scalef
|
||||
color: Constants.colors.text
|
||||
}
|
||||
}
|
||||
|
|
@ -67,6 +67,11 @@ SlidePage {
|
|||
section.property: 'section'
|
||||
section.delegate: SectionHeader { text: section }
|
||||
|
||||
PPlaceholder {
|
||||
text: 'No podcasts'
|
||||
visible: podcastList.count === 0
|
||||
}
|
||||
|
||||
model: podcastListModel
|
||||
|
||||
delegate: PodcastItem {
|
||||
|
|
|
@ -49,8 +49,6 @@ Rectangle {
|
|||
Dragging {
|
||||
id: dragging
|
||||
stacking: stacking
|
||||
|
||||
onPulled: console.log('have pulled it!')
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
|
|
|
@ -120,7 +120,7 @@ SlidePage {
|
|||
}
|
||||
|
||||
StartPageButton {
|
||||
id: freshEpisodesPage
|
||||
id: freshEpisodes
|
||||
enabled: freshEpisodesRepeater.count > 0
|
||||
|
||||
title: py.refreshing ? 'Refreshing feeds' : 'Fresh episodes'
|
||||
|
@ -186,8 +186,8 @@ SlidePage {
|
|||
onClicked: pgst.loadPage('PlayerPage.qml');
|
||||
|
||||
anchors {
|
||||
left: recommendationsPane.left
|
||||
right: recommendationsPane.right
|
||||
left: freshEpisodes.left
|
||||
right: freshEpisodes.right
|
||||
}
|
||||
|
||||
height: 100 * pgst.scalef
|
||||
|
@ -199,51 +199,18 @@ SlidePage {
|
|||
}
|
||||
|
||||
ButtonArea {
|
||||
onClicked: pgst.loadPage('Settings.qml');
|
||||
onClicked: pgst.loadPage('Directory.qml');
|
||||
|
||||
anchors {
|
||||
left: recommendationsPane.left
|
||||
right: recommendationsPane.right
|
||||
left: freshEpisodes.left
|
||||
right: freshEpisodes.right
|
||||
}
|
||||
|
||||
height: 100 * pgst.scalef
|
||||
|
||||
PLabel {
|
||||
anchors.centerIn: parent
|
||||
text: 'Settings'
|
||||
}
|
||||
}
|
||||
|
||||
StartPageButton {
|
||||
id: recommendationsPane
|
||||
|
||||
title: 'gpodder.net'
|
||||
onClicked: pgst.loadPage('Directory.qml');
|
||||
|
||||
Row {
|
||||
anchors {
|
||||
horizontalCenter: parent.horizontalCenter
|
||||
bottom: parent.bottom
|
||||
margins: 40 * pgst.scalef
|
||||
}
|
||||
|
||||
spacing: 20 * pgst.scalef
|
||||
|
||||
Connections {
|
||||
target: py
|
||||
onReadyChanged: {
|
||||
if (py.ready) {
|
||||
py.call('main.load_podcasts', [], function (podcasts) {
|
||||
recommendationsRepeater.model = podcasts.splice(0, 4);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Repeater {
|
||||
id: recommendationsRepeater
|
||||
Image { source: modelData.coverart; sourceSize { width: 80 * pgst.scalef; height: 80 * pgst.scalef } }
|
||||
}
|
||||
text: 'gpodder.net'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -60,19 +60,6 @@ SlidePage {
|
|||
}
|
||||
}
|
||||
|
||||
ButtonArea {
|
||||
id: directory
|
||||
width: input.width
|
||||
height: input.height
|
||||
|
||||
PLabel {
|
||||
anchors.centerIn: parent
|
||||
text: 'gpodder.net'
|
||||
}
|
||||
|
||||
onClicked: pgst.loadPage('Directory.qml');
|
||||
}
|
||||
|
||||
PBusyIndicator {
|
||||
id: loading
|
||||
visible: false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue