mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2024-12-22 14:05:18 +00:00
sailfish: add contributors list and update info page
- Add list of contributors - Add link to GitHub repository - Update copyright year
This commit is contained in:
parent
5cd0b10b73
commit
13786f01c9
|
@ -25,6 +25,7 @@ set(sailfin_QML_SOURCES
|
|||
qml/components/music/SongDelegate.qml
|
||||
qml/components/videoplayer/VideoError.qml
|
||||
qml/components/videoplayer/VideoHud.qml
|
||||
qml/components/ContributorsSection.qml
|
||||
qml/components/IconListItem.qml
|
||||
qml/components/ItemChildrenShowcase.qml
|
||||
qml/components/JItem.qml
|
||||
|
|
48
sailfish/qml/components/ContributorsSection.qml
Normal file
48
sailfish/qml/components/ContributorsSection.qml
Normal file
|
@ -0,0 +1,48 @@
|
|||
import QtQuick 2.6
|
||||
import Sailfish.Silica 1.0
|
||||
|
||||
Column {
|
||||
property string headerText
|
||||
// The contributors model
|
||||
property var contributors
|
||||
width: parent.width
|
||||
SectionHeader {
|
||||
text: headerText
|
||||
}
|
||||
|
||||
ColumnView {
|
||||
model: contributors
|
||||
itemHeight: Theme.itemSizeLarge
|
||||
|
||||
delegate: ListItem {
|
||||
width: parent.width
|
||||
contentHeight: Theme.itemSizeLarge
|
||||
|
||||
onClicked: {
|
||||
if (model.url) {
|
||||
Qt.openUrlExternally(model.url)
|
||||
}
|
||||
}
|
||||
|
||||
Column {
|
||||
anchors {
|
||||
verticalCenter: parent.verticalCenter
|
||||
left: parent.left
|
||||
right: parent.right
|
||||
leftMargin: Theme.horizontalPageMargin
|
||||
rightMargin: Theme.horizontalPageMargin
|
||||
}
|
||||
|
||||
Label {
|
||||
text: model.name
|
||||
}
|
||||
|
||||
Label {
|
||||
text: model.role
|
||||
color: highlighted ? Theme.secondaryHighlightColor : Theme.secondaryColor
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -53,9 +53,10 @@ Page {
|
|||
text: qsTr("<p><b>Sailfin version %1</b><br/>" +
|
||||
"Copyright © Chris Josten 2020–%2</p>" +
|
||||
"<p>Sailfin is Free Software licensed under the <a href='lgpl'>LGPL-v2.1</a> or later, at your choice. " +
|
||||
"You can <a href=\"github\">view its source code on GitHub</a>. " +
|
||||
"Parts of the code of Sailfin are from other libraries. <a href='3rdparty'>View their licenses here</a>.</p>")
|
||||
.arg(apiClient.version)
|
||||
.arg(2021)
|
||||
.arg(2024)
|
||||
textFormat: Text.StyledText
|
||||
color: Theme.secondaryHighlightColor
|
||||
linkColor: Theme.primaryColor
|
||||
|
@ -67,10 +68,28 @@ Page {
|
|||
case "3rdparty":
|
||||
pageStack.push(Qt.resolvedUrl("LegalPage.qml"))
|
||||
break;
|
||||
case "github":
|
||||
Qt.openUrlExternally("https://github.com/heartfin/harbour-sailfin")
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ContributorsSection {
|
||||
//: SectionHeader
|
||||
headerText: qsTr("Contributors")
|
||||
contributors: ListModel {
|
||||
ListElement {
|
||||
name: "Chris Josten"
|
||||
role: "Developer"
|
||||
url: "https://github.com/HenkKalkwater"
|
||||
}
|
||||
ListElement {
|
||||
name: "Mikhail Barashkov"
|
||||
role: "Russian translation"
|
||||
url: "https://github.com/mbarashkov"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
VerticalScrollDecorator {}
|
||||
}
|
||||
|
|
|
@ -7,10 +7,6 @@
|
|||
<source>About Sailfin</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source><p><b>Sailfin version %1</b><br/>Copyright © Chris Josten 2020–%2</p><p>Sailfin is Free Software licensed under the <a href='lgpl'>LGPL-v2.1</a> or later, at your choice. Parts of the code of Sailfin are from other libraries. <a href='3rdparty'>View their licenses here</a>.</p></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Open externally</source>
|
||||
<translation type="unfinished"></translation>
|
||||
|
@ -19,6 +15,15 @@
|
|||
<source>LGPL 2.1 License</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source><p><b>Sailfin version %1</b><br/>Copyright © Chris Josten 2020–%2</p><p>Sailfin is Free Software licensed under the <a href='lgpl'>LGPL-v2.1</a> or later, at your choice. You can <a href="github">view its source code on GitHub</a>. Parts of the code of Sailfin are from other libraries. <a href='3rdparty'>View their licenses here</a>.</p></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Contributors</source>
|
||||
<extracomment>SectionHeader</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>AddServerConnectingPage</name>
|
||||
|
|
|
@ -16,11 +16,16 @@
|
|||
<translation>Лицензия LGPL 2.1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source><p><b>Sailfin version %1</b><br/>Copyright © Chris Josten 2020–%2</p><p>Sailfin is Free Software licensed under the <a href='lgpl'>LGPL-v2.1</a> or later, at your choice. Parts of the code of Sailfin are from other libraries. <a href='3rdparty'>View their licenses here</a>.</p></source>
|
||||
<source>LGPL 2.1 License</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>LGPL 2.1 License</source>
|
||||
<source><p><b>Sailfin version %1</b><br/>Copyright © Chris Josten 2020–%2</p><p>Sailfin is Free Software licensed under the <a href='lgpl'>LGPL-v2.1</a> or later, at your choice. You can <a href="github">view its source code on GitHub</a>. Parts of the code of Sailfin are from other libraries. <a href='3rdparty'>View their licenses here</a>.</p></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Contributors</source>
|
||||
<extracomment>SectionHeader</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<name>AboutPage</name>
|
||||
<message>
|
||||
<source>About Sailfin</source>
|
||||
<translation>About Sailfin1</translation>
|
||||
<translation>About Sailfin</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Open externally</source>
|
||||
|
|
Loading…
Reference in a new issue