Warning, /plasma/plasma-welcome/src/qml/pages/plasmaupdate/Update.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 
0013 import org.kde.plasma.welcome
0014 
0015 ColumnLayout {
0016     id: root
0017 
0018     readonly property string description: xi18nc("@info:usagetip", "KDE contributors have spent the last four months hard at work on this release. We hope you enjoy using Plasma as much as we enjoyed making it!")
0019     readonly property int iconSize: Kirigami.Units.iconSizes.enormous
0020 
0021     readonly property list<QtObject> topContent: [
0022         Kirigami.UrlButton {
0023             Layout.topMargin: Kirigami.Units.largeSpacing
0024             text: i18nc("@action:button", "<b>Find out what's new</b>")
0025             url: Controller.releaseUrl
0026         },
0027         Kirigami.UrlButton {
0028             Layout.topMargin: Kirigami.Units.largeSpacing
0029             text: i18nc("@action:button", "Help work on the next release")
0030             url: "https://community.kde.org/Get_Involved?source=plasma-welcome"
0031         }
0032     ]
0033 
0034     spacing: Kirigami.Units.gridUnit
0035 
0036     RowLayout {
0037         Layout.alignment: Qt.AlignHCenter
0038         Layout.fillHeight: true
0039         Layout.maximumHeight: Number.POSITIVE_INFINITY
0040 
0041         spacing: Kirigami.Units.gridUnit
0042 
0043         Kirigami.Icon {
0044             Layout.preferredWidth: root.iconSize
0045             Layout.preferredHeight: root.iconSize
0046             source: "start-here-kde-plasma"
0047         }
0048 
0049         QQC2.Label {
0050             text: "="
0051             font.pointSize: 72
0052         }
0053 
0054         Kirigami.Icon {
0055             Layout.preferredWidth: root.iconSize
0056             Layout.preferredHeight: root.iconSize
0057             source: "face-in-love"
0058         }
0059     }
0060 
0061     Kirigami.AbstractCard {
0062         Layout.fillWidth: true
0063 
0064         contentItem: ColumnLayout {
0065             spacing: Kirigami.Units.smallSpacing
0066 
0067             QQC2.Label {
0068                 Layout.fillWidth: true
0069                 wrapMode: Text.Wrap
0070                 text: xi18nc("@info:usagetip", "The KDE community relies on donations of expertise and funds, and is supported by KDE e.V.—a German nonprofit. Donations to KDE e.V. support the wider KDE community, and you can make a difference by donating today.")
0071             }
0072 
0073             Kirigami.UrlButton {
0074                 text: i18nc("@action:button", "Make a donation")
0075                 url: "https://kde.org/community/donations?source=plasma-welcome"
0076             }
0077         }
0078     }
0079 }