Warning, /plasma/plasma-welcome/src/qml/pages/Donate.qml is written in an unsupported language. File is not indexed.

0001 /*
0002  *  SPDX-FileCopyrightText: 2021 Felipe Kinoshita <kinofhek@gmail.com>
0003  *  SPDX-FileCopyrightText: 2022 Nate Graham <nate@kde.org>
0004  *
0005  *  SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0006  */
0007 
0008 import QtQuick
0009 import QtQuick.Controls as QQC2
0010 import QtQuick.Layouts
0011 import org.kde.kirigami as Kirigami
0012 import org.kde.plasma.welcome
0013 
0014 GenericPage {
0015     heading: i18nc("@title:window", "Support Your Freedom")
0016     description: xi18nc("@info:usagetip", "The KDE community relies on donations of expertise and funds, and is supported by KDE e.V.--a German nonprofit that manages legal matters, funds development sprints and server resources, and offers employment opportunities for KDE developers. Donations to KDE e.V. support the wider KDE community, and you can make a difference by donating today!<nl/><nl/>Donations are tax-deductible in Germany.")
0017 
0018     topContent: [
0019         Kirigami.UrlButton {
0020             id: link
0021             Layout.topMargin: Kirigami.Units.largeSpacing
0022             text: i18nc("@action:button", "Make a donation")
0023             url: "https://kde.org/community/donations?source=plasma-welcome"
0024         }
0025     ]
0026 
0027     Image {
0028         anchors.centerIn: parent
0029         anchors.verticalCenterOffset: -Kirigami.Units.gridUnit
0030         width: Math.min (parent.width, Kirigami.Units.gridUnit * 25)
0031         fillMode: Image.PreserveAspectFit
0032         mipmap: true
0033         source: "konqi-donations.png"
0034 
0035         HoverHandler {
0036             id: hoverhandler
0037             cursorShape: Qt.PointingHandCursor
0038         }
0039         TapHandler {
0040             onTapped: Qt.openUrlExternally(link.url)
0041         }
0042         QQC2.ToolTip {
0043             visible: hoverhandler.hovered
0044             text: i18nc("@action:button clicking on this takes the user to a web page", "Visit %1", link.url)
0045         }
0046     }
0047 
0048     actions: [
0049         Kirigami.Action {
0050             icon.name: "favorite-symbolic"
0051             text: i18nc("@action:button", "Plasma 6 Supporters")
0052             onTriggered: pageStack.layers.push(supporters)
0053         }
0054     ]
0055 
0056     Supporters {
0057         id: supporters
0058     }
0059 }