Cleaned up Harmattan AboutPage
authorLuciano Montanaro <mikelima@cirulla.net>
Thu, 14 Nov 2013 22:34:16 +0000 (23:34 +0100)
committerLuciano Montanaro <mikelima@cirulla.net>
Thu, 14 Nov 2013 22:34:16 +0000 (23:34 +0100)
application/resources/harmattan/qml/AboutPage.qml
application/resources/harmattan/qml/DelayIndicator.qml
application/resources/harmattan/qml/DroppedShadow.qml
application/resources/harmattan/qml/InfoBar.qml

index 9ac022d..b4a70f5 100644 (file)
@@ -20,6 +20,10 @@ Page {
             qsTr("About Quando Parte")
         ]
     }
+    DroppedShadow {
+        id: shadow
+        anchors.top: header.bottom
+    }
     Flickable {
         anchors {
             top: header.bottom;
@@ -27,31 +31,44 @@ Page {
             right: parent.right;
             margins: UiConstants.DefaultMargin
         }
+        Row {
+            anchors.top: parent.top
+            id: firstSection
+            spacing: UiConstants.DefaultMargin
+            Image {
+                anchors.verticalCenter: parent.verticalCenter
+                source: "/usr/share/icons/hicolor/meegotouch/apps/quandoparte.png"
+            }
+            Label {
+                textFormat: Text.RichText
+                text: "<style>a:link{color:" + UiConstants.AccentColor + ";text-decoration:none}</style>" +
+                      "<div style='font-size:large;font-weight:bold'><a href='http://quandoparte.garage.maemo.org'>" +
+                      qsTr("Quando Parte") + "</a></div>" + "<div style='font-size:small;'>" +
+                      qsTr("version ") + settings.versionString + "</div>"
+                onLinkActivated: Qt.openUrlExternally(link)
+            }
+        }
         Label {
             anchors {
-                top: parent.top;
+                top: firstSection.bottom;
                 left: parent.left;
                 right: parent.right;
-                margins: UiConstants.DefaultMargin
+                topMargin: UiConstants.DefaultMargin
             }
-            wrapMode: Text.WordWrap
             textFormat: Text.RichText
-            text: qsTr("<h2><a href='http://quandoparte.garage.maemo.org'>" +
-                       "Quando Parte" + "</a></h2>" +"<p style='font-size:small;'>version ") +
-                  settings.versionString +
-                  qsTr("</p>" +
-                       "<p>Copyright (c) 2010, 2011, 2012, 2013</p>" +
+            wrapMode: Text.WordWrap
+            text: "<style>a:link{color:" + UiConstants.AccentColor + ";text-decoration:none}</style>" +
+                  "<div style='font-size:small'>" +
+                  qsTr("<p>Copyright (c) 2010, 2011, 2012, 2013</p>" +
                        "<p>Luciano Montanaro " +
                        "(<a href='mailto:mikelima@cirulla.net'>mikelima@cirulla.net</a>)</p>" +
                        "<p>Licensed under the GNU Public License v2 or above</p>" +
-                       "<p/><p>Station geolocation data from " +
+                       "<p>Station geolocation data from " +
                        "<a href='http://www.openstreetmap.org'>OpenStreetMap</a></p>" +
                        "<p>Realtime train data from " +
-                       "<a href='http://mobile.viaggiatreno.it'>Viaggiatreno</a></p>");
+                       "<a href='http://mobile.viaggiatreno.it'>Viaggiatreno</a></p>") +
+                  "</div>"
             onLinkActivated: Qt.openUrlExternally(link)
         }
-        LabelStyle {
-            id: labelStyle
-        }
     }
  }
index f75ef88..958f924 100644 (file)
@@ -1,4 +1,4 @@
-import QtQuick 1.0
+import QtQuick 1.1
 import com.nokia.meego 1.1
 import "uiconstants.js" as UiConstants