Merge pull request #20 from QuasarApp/task_18

Fixing change for support logo
This commit is contained in:
Andrei Yankovich 2021-10-12 22:10:20 +03:00 committed by GitHub
commit 76ee54e4c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 2 deletions

View File

@ -24,6 +24,9 @@ ApplicationWindow {
}
Credits {
state: "minimal"
iconLogo: "qrc:/res/res/Credits.jpg"
iconWidth: 250
}
Credits {
state: "bitcoinSimple"

View File

@ -15,7 +15,8 @@ Page {
// developersa and patronsList lists must be contain structure with a section amd sectionList fields.
// The section it is section name
// the sectionList it is list of section members.
property string iconLogo: "qrc:/res/res/Credits.jpg"
property string iconLogo: ""
property int iconWidth: 250
property var developersList: []
property var versionList: []
property var patronsList: [
@ -30,7 +31,7 @@ Page {
header: Image {
fillMode: Image.PreserveAspectFit
source: iconLogo
source: "qrc:/res/res/Credits.jpg"
visible: showHeader
}
@ -40,10 +41,23 @@ Page {
ScrollBar.vertical: ScrollBar { }
contentHeight: source.height
clip: true
ColumnLayout {
id: source
width: parent.width
spacing: 10
Image {
id: logoName
mipmap: true
fillMode: Image.PreserveAspectFit
source: iconLogo
Layout.alignment: Qt.AlignHCenter
Layout.preferredWidth: iconWidth
Layout.preferredHeight: iconWidth
visible: iconLogo.length
}
Label {
text: qsTr("Join the development fund and support QuasarApp to help with the development of our projects.")