Improve AboutPage layout
[quandoparte] / application / resources / sailfish / qml / pages / AboutPage.qml
1 import QtQuick 2.0
2 import Sailfish.Silica 1.0
3
4 Page {
5     SilicaFlickable {
6         anchors.fill: parent
7         anchors.margins: Theme.paddingLarge
8         PageHeader {
9             id: header
10             anchors.top: parent.top
11             title: qsTr("About Quando Parte")
12         }
13
14         Row {
15             anchors.top: header.bottom
16             id: firstSection
17             spacing: Theme.paddingLarge
18             Image {
19                 anchors.verticalCenter: parent.verticalCenter
20                 source: "/usr/share/icons/hicolor/meegotouch/apps/quandoparte.png"
21             }
22             Label {
23                 textFormat: Text.RichText
24                 text: "<style>a:link{color:" + Theme.highlightColor + ";text-decoration:none}</style>" +
25                       "<div style='font-size:large;font-weight:bold'><a href='http://quandoparte.garage.maemo.org'>" +
26                       qsTr("Quando Parte") + "</a></div>" + "<div style='font-size:small;'>" +
27                       qsTr("version ") + settings.versionString + "</div>"
28                 onLinkActivated: Qt.openUrlExternally(link)
29             }
30         }
31         Label {
32             anchors {
33                 top: firstSection.bottom;
34                 left: parent.left;
35                 right: parent.right;
36                 topMargin: Theme.paddingLarge
37             }
38             fontSizeMode: Text.Fit
39             textFormat: Text.RichText
40             wrapMode: Text.WordWrap
41             linkColor: Theme.highlightColor
42             text: "<style>a:link{color:" + Theme.highlightColor + ";text-decoration:none}</style>" +
43                   "<div style='font-size:small'>" +
44                   qsTr("<p>Copyright (c) 2010, 2011, 2012, 2013</p>" +
45                        "<p>Luciano Montanaro " +
46                        "(<a href='mailto:mikelima@cirulla.net'>mikelima@cirulla.net</a>)</p>" +
47                        "<p>Licensed under the GNU Public License v2 or above</p>" +
48                        "<p/><p>Station geolocation data from " +
49                        "<a href='http://www.openstreetmap.org'>OpenStreetMap</a></p>" +
50                        "<p>Realtime train data from " +
51                        "<a href='http://mobile.viaggiatreno.it'>Viaggiatreno</a></p>") +
52                   "</div>"
53             onLinkActivated: Qt.openUrlExternally(link)
54         }
55     }
56 }