Update About page
This commit is contained in:
parent
4721e6c034
commit
f47036e8f3
10 changed files with 128 additions and 1156 deletions
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
|
||||||
|
harbour-expenditure.pro.user
|
||||||
|
harbour-expenditure.pro.*
|
File diff suppressed because it is too large
Load diff
|
@ -1,5 +1,6 @@
|
||||||
import QtQuick 2.6
|
import QtQuick 2.6
|
||||||
import Sailfish.Silica 1.0
|
import Sailfish.Silica 1.0
|
||||||
|
import "../pages"
|
||||||
|
|
||||||
CoverBackground {
|
CoverBackground {
|
||||||
/*
|
/*
|
||||||
|
@ -12,23 +13,31 @@ CoverBackground {
|
||||||
Image {
|
Image {
|
||||||
id: name
|
id: name
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
source: "harbour-expenditure.png"
|
source: "/usr/share/icons/hicolor/172x172/apps/harbour-expenditure.png"
|
||||||
width: Theme.iconSizeLarge
|
width: Theme.iconSizeLarge
|
||||||
height: Theme.iconSizeLarge
|
height: Theme.iconSizeLarge
|
||||||
sourceSize.width: width
|
sourceSize.width: width
|
||||||
sourceSize.height: height
|
sourceSize.height: height
|
||||||
fillMode: Image.PreserveAspectFit
|
fillMode: Image.PreserveAspectFit
|
||||||
}
|
}
|
||||||
/*
|
BannerAddExpense {
|
||||||
|
id: bannerAddExpense
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
CoverActionList {
|
CoverActionList {
|
||||||
id: coverAction
|
id: coverAction
|
||||||
|
|
||||||
CoverAction {
|
CoverAction {
|
||||||
iconSource: "image://theme/icon-cover-next"
|
onTriggered: {
|
||||||
|
if(Number(storageItem.getSettings("activeProjectID_unixtime", 0)) !== 0) {
|
||||||
|
main.activate()
|
||||||
|
bannerAddExpense.notify( Theme.rgba(Theme.highlightDimmerColor, 1), Theme.itemSizeLarge, "new", activeProjectID_unixtime, 0 )
|
||||||
}
|
}
|
||||||
CoverAction {
|
|
||||||
iconSource: "image://theme/icon-cover-pause"
|
}
|
||||||
|
|
||||||
|
iconSource: "image://theme/icon-cover-add"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,7 @@ import QtQuick.LocalStorage 2.0
|
||||||
import "pages"
|
import "pages"
|
||||||
|
|
||||||
ApplicationWindow {
|
ApplicationWindow {
|
||||||
|
id: main
|
||||||
initialPage: Component { FirstPage { } }
|
initialPage: Component { FirstPage { } }
|
||||||
cover: Qt.resolvedUrl("cover/CoverPage.qml")
|
cover: Qt.resolvedUrl("cover/CoverPage.qml")
|
||||||
allowedOrientations: defaultAllowedOrientations
|
allowedOrientations: defaultAllowedOrientations
|
||||||
|
|
|
@ -18,6 +18,18 @@ Page {
|
||||||
x: Theme.paddingLarge
|
x: Theme.paddingLarge
|
||||||
width: parent.width - 2*x
|
width: parent.width - 2*x
|
||||||
|
|
||||||
|
SectionHeader{
|
||||||
|
text: qsTr("About")
|
||||||
|
}
|
||||||
|
|
||||||
|
Image {
|
||||||
|
id: logo
|
||||||
|
source: "/usr/share/icons/hicolor/172x172/apps/harbour-expenditure.png"
|
||||||
|
smooth: true
|
||||||
|
height: parent.width / 2
|
||||||
|
width: parent.width / 2
|
||||||
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
}
|
||||||
Label {
|
Label {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: Theme.itemSizeLarge
|
height: Theme.itemSizeLarge
|
||||||
|
@ -31,14 +43,6 @@ Page {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: Theme.paddingLarge
|
height: Theme.paddingLarge
|
||||||
}
|
}
|
||||||
Image {
|
|
||||||
width: parent.width
|
|
||||||
height: Theme.itemSizeHuge
|
|
||||||
source: "../cover/harbour-expenditure.png"
|
|
||||||
sourceSize.width: height
|
|
||||||
sourceSize.height: height
|
|
||||||
fillMode: Image.PreserveAspectFit
|
|
||||||
}
|
|
||||||
Item {
|
Item {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: Theme.paddingLarge * 2.5
|
height: Theme.paddingLarge * 2.5
|
||||||
|
@ -61,24 +65,64 @@ Page {
|
||||||
text: qsTr("Thanksgiving, feedback and support is always welcome.")
|
text: qsTr("Thanksgiving, feedback and support is always welcome.")
|
||||||
bottomPadding: Theme.paddingLarge * 2
|
bottomPadding: Theme.paddingLarge * 2
|
||||||
}
|
}
|
||||||
|
SectionHeader{
|
||||||
|
text: qsTr("Troubleshooting")
|
||||||
|
}
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
x: Theme.paddingMedium
|
x: Theme.paddingMedium
|
||||||
width: parent.width - 2*x
|
width: parent.width - 2*x
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
font.pixelSize: Theme.fontSizeExtraSmall
|
font.pixelSize: Theme.fontSizeExtraSmall
|
||||||
wrapMode: Text.Wrap
|
wrapMode: Text.Wrap
|
||||||
text: qsTr("Troubleshooting:")
|
text: qsTr("In case of any database error tap 10x on the word 'Settings' for cleanup options.")
|
||||||
+ "\n" + qsTr("In case of any database error tap 10x on the word 'Settings' for cleanup options.")
|
|
||||||
bottomPadding: Theme.paddingLarge * 2
|
bottomPadding: Theme.paddingLarge * 2
|
||||||
}
|
}
|
||||||
|
SectionHeader {
|
||||||
|
text: qsTr("Source code")
|
||||||
|
}
|
||||||
|
|
||||||
|
Label {
|
||||||
|
x: Theme.paddingMedium
|
||||||
|
width: parent.width - 2*x
|
||||||
|
horizontalAlignment: Text.AlignHCenter
|
||||||
|
font.pixelSize: Theme.fontSizeExtraSmall
|
||||||
|
wrapMode: Text.Wrap
|
||||||
|
text: qsTr("Thanksgiving, feedback and support is always welcome.")
|
||||||
|
bottomPadding: Theme.paddingLarge * 2
|
||||||
|
onLinkActivated: Qt.openUrlExternally(link)
|
||||||
|
}
|
||||||
|
BackgroundItem{
|
||||||
|
width: parent.width
|
||||||
|
height: Theme.itemSizeMedium
|
||||||
|
Row{
|
||||||
|
width:parent.width - 2 * x
|
||||||
|
height: parent.height
|
||||||
|
x:Theme.horizontalPageMargin
|
||||||
|
spacing:Theme.paddingLarge
|
||||||
|
|
||||||
|
Label{
|
||||||
|
width: parent.width - parent.spacing
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
wrapMode: Text.WrapAnywhere
|
||||||
|
font.pixelSize: Theme.fontSizeSmall
|
||||||
|
|
||||||
|
text: "https://github.com/yajo10/harbour-expenditure"
|
||||||
|
color: parent.parent.pressed ? Theme.highlightColor : Theme.primaryColor
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
onClicked: Qt.openUrlExternally("https://github.com/yajo10/harbour-expenditure")
|
||||||
|
}
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
font.pixelSize: Theme.fontSizeExtraSmall
|
font.pixelSize: Theme.fontSizeExtraSmall
|
||||||
color: Theme.secondaryColor
|
color: Theme.secondaryColor
|
||||||
wrapMode: Text.Wrap
|
wrapMode: Text.Wrap
|
||||||
text: qsTr("Contact:")
|
text: qsTr("First author:")
|
||||||
+ "\n" + qsTr("Copyright © 2022 Tobias Planitzer")
|
+ "\n" + qsTr("Tobias Planitzer")
|
||||||
+ "\n" + ("tp.labs@protonmail.com")
|
+ "\n" + ("tp.labs@protonmail.com")
|
||||||
+ "\n" + qsTr("License: GPL v3")
|
+ "\n" + qsTr("License: GPL v3")
|
||||||
}
|
}
|
||||||
|
|
|
@ -145,6 +145,10 @@ Page {
|
||||||
qsort(0,count)
|
qsort(0,count)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
AboutPage {
|
||||||
|
id: aboutPage
|
||||||
|
}
|
||||||
|
|
||||||
SettingsPage {
|
SettingsPage {
|
||||||
id: settingsPage
|
id: settingsPage
|
||||||
}
|
}
|
||||||
|
@ -234,6 +238,10 @@ Page {
|
||||||
id: idPulldownMenu
|
id: idPulldownMenu
|
||||||
quickSelect: true
|
quickSelect: true
|
||||||
|
|
||||||
|
MenuItem {
|
||||||
|
text: qsTr("About")
|
||||||
|
onClicked: pageStack.push(aboutPage)
|
||||||
|
}
|
||||||
MenuItem {
|
MenuItem {
|
||||||
text: qsTr("Settings")
|
text: qsTr("Settings")
|
||||||
onClicked: pageStack.push(settingsPage)
|
onClicked: pageStack.push(settingsPage)
|
||||||
|
|
|
@ -9,7 +9,7 @@ Name: harbour-expenditure
|
||||||
# << macros
|
# << macros
|
||||||
|
|
||||||
Summary: Expenditure
|
Summary: Expenditure
|
||||||
Version: 0.2
|
Version: 0.3
|
||||||
Release: 1
|
Release: 1
|
||||||
Group: Qt/Qt
|
Group: Qt/Qt
|
||||||
License: LICENSE
|
License: LICENSE
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
Name: harbour-expenditure
|
Name: harbour-expenditure
|
||||||
Summary: Expenditure
|
Summary: Expenditure
|
||||||
Version: 0.2
|
Version: 0.3
|
||||||
Release: 1
|
Release: 1
|
||||||
# The contents of the Group field should be one of the groups listed here:
|
# The contents of the Group field should be one of the groups listed here:
|
||||||
# https://github.com/mer-tools/spectacle/blob/master/data/GROUPS
|
# https://github.com/mer-tools/spectacle/blob/master/data/GROUPS
|
||||||
|
|
|
@ -7,10 +7,6 @@
|
||||||
<source>Expenditure</source>
|
<source>Expenditure</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
|
||||||
<source>Copyright © 2022 Tobias Planitzer</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
<message>
|
||||||
<source>License: GPL v3</source>
|
<source>License: GPL v3</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
|
@ -23,16 +19,28 @@
|
||||||
<source>Thanksgiving, feedback and support is always welcome.</source>
|
<source>Thanksgiving, feedback and support is always welcome.</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
|
||||||
<source>Troubleshooting:</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
<message>
|
||||||
<source>In case of any database error tap 10x on the word 'Settings' for cleanup options.</source>
|
<source>In case of any database error tap 10x on the word 'Settings' for cleanup options.</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Contact:</source>
|
<source>First author:</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Tobias Planitzer</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>About</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Troubleshooting</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Source code</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
|
@ -287,6 +295,10 @@
|
||||||
<source>Remove entry?</source>
|
<source>Remove entry?</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>About</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>SettingsPage</name>
|
<name>SettingsPage</name>
|
||||||
|
|
|
@ -7,10 +7,6 @@
|
||||||
<source>Expenditure</source>
|
<source>Expenditure</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
|
||||||
<source>Copyright © 2022 Tobias Planitzer</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
<message>
|
||||||
<source>License: GPL v3</source>
|
<source>License: GPL v3</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
|
@ -23,16 +19,28 @@
|
||||||
<source>Thanksgiving, feedback and support is always welcome.</source>
|
<source>Thanksgiving, feedback and support is always welcome.</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
|
||||||
<source>Troubleshooting:</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
<message>
|
||||||
<source>In case of any database error tap 10x on the word 'Settings' for cleanup options.</source>
|
<source>In case of any database error tap 10x on the word 'Settings' for cleanup options.</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Contact:</source>
|
<source>First author:</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Tobias Planitzer</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>About</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Troubleshooting</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Source code</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
|
@ -287,6 +295,10 @@
|
||||||
<source>Remove entry?</source>
|
<source>Remove entry?</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>About</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>SettingsPage</name>
|
<name>SettingsPage</name>
|
||||||
|
|
Loading…
Reference in a new issue