harbour-seaprint/qml/pages/AboutPage.qml

117 lines
3.5 KiB
QML
Raw Normal View History

2019-12-13 23:36:39 +03:00
import QtQuick 2.0
import Sailfish.Silica 1.0
import "../components"
Page {
id: aboutPage
allowedOrientations: Orientation.Portrait | Orientation.Landscape | Orientation.LandscapeInverted
SilicaFlickable {
id: aboutFlickable
anchors.fill: parent
contentHeight: column.height
PullDownMenu
{
MenuItem
{
text: qsTr("GitHub repository")
onClicked: Qt.openUrlExternally("https://github.com/attah/harbour-seaprint")
}
MenuItem
{
text: qsTr("Report an Issue")
onClicked: Qt.openUrlExternally("https://github.com/attah/harbour-seaprint/issues")
}
}
Column {
id: column
anchors {
top: parent.top
horizontalCenter: parent.horizontalCenter
}
width: Math.min(Screen.width, aboutFlickable.width)
spacing: Theme.paddingLarge
Item {
width: parent.width
height: Theme.paddingLarge
}
SectionHeader { text: qsTr("About") + " SeaPrint" }
Image {
anchors.horizontalCenter: parent.horizontalCenter
source: Qt.resolvedUrl("/usr/share/icons/hicolor/172x172/apps/harbour-seaprint.png")
width: Theme.iconSizeExtraLarge
height: Theme.iconSizeExtraLarge
smooth: true
asynchronous: true
}
2019-12-13 23:36:39 +03:00
AboutLabel {
font.pixelSize: Theme.fontSizeLarge
color: Theme.highlightColor
text: "SeaPrint v" + Qt.application.version
2019-12-13 23:36:39 +03:00
}
2019-12-13 23:36:39 +03:00
AboutLabel {
font.pixelSize: Theme.fontSizeSmall
color: Theme.primaryColor
text: "© 2019 Anton Thomasson"
}
2019-12-13 23:36:39 +03:00
AboutLabel {
font.pixelSize: Theme.fontSizeSmall
color: Theme.primaryColor
text: qsTr("Network printing for Sailfish OS.")
}
SectionHeader { text: qsTr("Icons") }
AboutLabel {
font.pixelSize: Theme.fontSizeSmall
text: qsTr("Icon made by Gregguh.")
}
SectionHeader { text: qsTr("General contributions") }
AboutLabel {
font.pixelSize: Theme.fontSizeSmall
text: qsTr("Code and Testing - Rudi Timmermans")
2019-12-13 23:36:39 +03:00
}
SectionHeader { text: qsTr("Translations") }
AboutLabel {
font.pixelSize: Theme.fontSizeSmall
text: qsTr("Chinese")+" - dashinfantry\n"+
2020-01-04 19:59:54 +03:00
qsTr("French")+" - ensag-dev\n"+
qsTr("Spanish")+" - carmenfdezb"
2019-12-13 23:36:39 +03:00
}
SectionHeader { text: qsTr("Licensing") }
AboutLabel {
font.pixelSize: Theme.fontSizeSmall
text: qsTr("Source code is available at GitHub. Translations, bug reports and other contributions are welcome!")
}
2019-12-13 23:36:39 +03:00
Button {
text: "GitHub"
anchors.horizontalCenter: parent.horizontalCenter
onClicked: Qt.openUrlExternally("https://github.com/attah/harbour-seaprint")
}
2019-12-13 23:36:39 +03:00
AboutLabel {
font.pixelSize: Theme.fontSizeSmall
color: Theme.primaryColor
2019-12-17 22:20:31 +03:00
text: qsTr("SeaPrint licencing is still TBD, but will be some flavor of open.")
2019-12-13 23:36:39 +03:00
}
}
}
}