~podbird-devs/podbird/devel

« back to all changes in this revision

Viewing changes to app/ui/PodcastsTab.qml

  • Committer: Nekhelesh Ramananthan
  • Date: 2016-03-05 16:57:41 UTC
  • mfrom: (118.1.2 podbird-devel)
  • Revision ID: krnekhelesh@gmail.com-20160305165741-ooch16n9l210zjlo
- Added new navigation structure which involves combining the SearchTab and PodcastsTab
- Moved WhatsNewTab into a bigger tab called EpisodesTab which also shows Downloaded episodes (globally)
- Added back button in search mode
- Moved podcast grid/list view option into the settings page

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
                }
62
62
            },
63
63
            Action {
64
 
                iconName: podbird.settings.showListView ? "view-grid-symbolic" : "view-list-symbolic"
65
 
                text: podbird.settings.showListView ? i18n.tr("Grid View") : i18n.tr("List View")
 
64
                iconName: "add"
 
65
                text: i18n.tr("Add New Podcasts")
66
66
                onTriggered: {
67
 
                    podbird.settings.showListView = !podbird.settings.showListView
 
67
                    mainStack.push(Qt.resolvedUrl("SearchPage.qml"))
68
68
                }
69
69
            }
70
70
        ]
86
86
            anchors.verticalCenter: parent.verticalCenter
87
87
        }
88
88
 
89
 
        trailingActionBar.actions: [
 
89
        leadingActionBar.actions: [
90
90
            Action {
91
 
                iconName: "edit-clear"
92
 
                text: i18n.tr("Cancel")
 
91
                iconName: "back"
93
92
                onTriggered: {
94
93
                    viewLoader.item.forceActiveFocus()
95
94
                    podcastPage.header = standardHeader
96
95
                }
97
 
            },
98
 
            Action {
99
 
                iconName: podbird.settings.showListView ? "view-grid-symbolic" : "view-list-symbolic"
100
 
                text: podbird.settings.showListView ? i18n.tr("Grid View") : i18n.tr("List View")
101
 
                onTriggered: {
102
 
                    podbird.settings.showListView = !podbird.settings.showListView
103
 
                }
104
96
            }
105
97
        ]
106
98
    }