@@ -22,76 +22,133 @@ import Ubuntu.Components 1.3
2222Page {
2323 id: aboutPage
2424
25− title: i18n.tr("About")
25+ header: PageHeader {
26+ id: aboutPageHeader
2627
27− Flickable {
28− id: flickable
28+ title: i18n.tr("About")
2929
30− anchors.fill: parent
31− contentHeight: dataColumn.height + units.gu(10) + dataColumn.anchors.topMargin
30+ StyleHints {
31+ backgroundColor: podbird.appTheme.background
32+ }
3233
33− Column {
34− id: dataColumn
34+ extension: Sections {
35+ id: aboutPageHeaderSections
3536
36− spacing: units.gu(3)
3737 anchors {
38− top: parent.top; left: parent.left; right: parent.right; topMargin: units.gu(5)
38+ left: parent.left
39+ leftMargin: units.gu(2)
40+ bottom: parent.bottom
3941 }
4042
41− Image {
42− height: width
43− width: Math.min(parent.width/2, parent.height/2)
44− source: "../graphics/podbird.png"
45− anchors.horizontalCenter: parent.horizontalCenter
43+ StyleHints {
44+ selectedSectionColor: podbird.appTheme.focusText
4645 }
46+ // TRANSTORS: Credits as in the code and design contributors to the app
47+ model: [i18n.tr("About"), i18n.tr("Credits")]
48+ }
49+ }
4750
48− Column {
49− width: parent.width
50− Label {
51− width: parent.width
52− fontSize: "x-large"
53− font.weight: Font.DemiBold
54− horizontalAlignment: Text.AlignHCenter
55− text: "Podbird"
56− }
57− Label {
58− width: parent.width
59− horizontalAlignment: Text.AlignHCenter
60− // TRANSLATORS: Podbird version number e.g Version 0.7
61− text: i18n.tr("Version %1").arg("0.7")
62− }
63− }
6451
65− Column {
66− anchors {
67− left: parent.left
68− right: parent.right
69− margins: units.gu(2)
70− }
71− Label {
72− width: parent.width
73− wrapMode: Text.WordWrap
74− horizontalAlignment: Text.AlignHCenter
75− text: "(C) 2015 Podbird Team"
76− }
77− Label {
78− fontSize: "small"
79− width: parent.width
80− wrapMode: Text.WordWrap
81− horizontalAlignment: Text.AlignHCenter
82− text: i18n.tr("Released under the terms of the GNU GPL v3")
52+ VisualItemModel {
53+ id: tabs
54+
55+ Item {
56+ width: tabView.width
57+ height: tabView.height
58+
59+ Flickable {
60+ id: flickable
61+
62+ anchors.fill: parent
63+ contentHeight: dataColumn.height + units.gu(10) + dataColumn.anchors.topMargin
64+
65+ Column {
66+ id: dataColumn
67+
68+ spacing: units.gu(3)
69+ anchors {
70+ top: parent.top; left: parent.left; right: parent.right; topMargin: units.gu(5)
71+ }
72+
73+ Image {
74+ height: width
75+ width: Math.min(parent.width/2, parent.height/2)
76+ source: "../graphics/podbird.png"
77+ anchors.horizontalCenter: parent.horizontalCenter
78+ }
79+
80+ Column {
81+ width: parent.width
82+ Label {
83+ width: parent.width
84+ fontSize: "x-large"
85+ font.weight: Font.DemiBold
86+ horizontalAlignment: Text.AlignHCenter
87+ text: "Podbird"
88+ }
89+ Label {
90+ width: parent.width
91+ horizontalAlignment: Text.AlignHCenter
92+ // TRANSLATORS: Podbird version number e.g Version 0.7
93+ text: i18n.tr("Version %1").arg("0.7")
94+ }
95+ }
96+
97+ Column {
98+ anchors {
99+ left: parent.left
100+ right: parent.right
101+ margins: units.gu(2)
102+ }
103+ Label {
104+ width: parent.width
105+ wrapMode: Text.WordWrap
106+ horizontalAlignment: Text.AlignHCenter
107+ text: "(C) 2015 Podbird Team"
108+ }
109+ Label {
110+ fontSize: "small"
111+ width: parent.width
112+ wrapMode: Text.WordWrap
113+ horizontalAlignment: Text.AlignHCenter
114+ text: i18n.tr("Released under the terms of the GNU GPL v3")
115+ }
116+ }
117+
118+ Label {
119+ width: parent.width
120+ wrapMode: Text.WordWrap
121+ fontSize: "small"
122+ horizontalAlignment: Text.AlignHCenter
123+ linkColor: podbird.appTheme.linkText
124+ text: i18n.tr("Source code available on %1").arg("<a href=\"https://launchpad.net/podbird\">launchpad.net</a>")
125+ onLinkActivated: Qt.openUrlExternally(link)
126+ }
83127 }
84128 }
129+ }
85130
86− Label {
87− width: parent.width
88− wrapMode: Text.WordWrap
89− fontSize: "small"
90− horizontalAlignment: Text.AlignHCenter
91− linkColor: podbird.appTheme.linkText
92− text: i18n.tr("Source code available on %1").arg("<a href=\"https://launchpad.net/podbird\">launchpad.net</a>")
93− onLinkActivated: Qt.openUrlExternally(link)
94− }
131+ Credits {
132+ width: tabView.width
133+ height: tabView.height
134+ }
135+ }
136+
137+ ListView {
138+ id: tabView
139+ model: tabs
140+ interactive: false
141+
142+ anchors {
143+ top: aboutPageHeader.bottom
144+ left: parent.left
145+ right: parent.right
146+ bottom: parent.bottom
95147 }
148+
149+ orientation: Qt.Horizontal
150+ snapMode: ListView.SnapOneItem
151+ currentIndex: aboutPageHeaderSections.selectedIndex
152+ highlightMoveDuration: UbuntuAnimation.SlowDuration
96153 }
97154}