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

0001 /*
0002  *  SPDX-FileCopyrightText: 2023 Oliver Beard <olib141@outlook.com>
0003  *
0004  *  SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0005  */
0006 
0007 import QtQuick
0008 import QtQuick.Controls as QQC2
0009 import QtQuick.Layouts
0010 import org.kde.kirigami as Kirigami
0011 
0012 import org.kde.plasma.welcome
0013 
0014 Item {
0015     id: root
0016 
0017     readonly property string description: xi18nc("@info:usagetip", "Thank you for testing this beta release of Plasma—your feedback is fundamental to helping us improve it! Please report any and all bugs you find so that we can fix them.")
0018     readonly property int iconSize: Kirigami.Units.iconSizes.enormous
0019 
0020     readonly property list<QtObject> topContent: [
0021         Kirigami.UrlButton {
0022             Layout.topMargin: Kirigami.Units.largeSpacing
0023             text: i18nc("@action:button", "<b>Find out what's new</b>")
0024             url: Controller.releaseUrl
0025         },
0026         Kirigami.UrlButton {
0027             Layout.topMargin: Kirigami.Units.largeSpacing
0028             text: i18nc("@action:button", "Report a bug")
0029             url: "https://bugs.kde.org"
0030         },
0031         Kirigami.UrlButton {
0032             text: i18nc("@action:button", "Help work on the next release")
0033             url: "https://community.kde.org/Get_Involved?source=plasma-welcome"
0034         }
0035     ]
0036 
0037     Kirigami.Icon {
0038         id: plasmaIcon
0039         anchors.centerIn: root
0040 
0041         width: Kirigami.Units.iconSizes.enormous * 1.5
0042         height: Kirigami.Units.iconSizes.enormous * 1.5
0043 
0044         source: "start-here-kde-plasma"
0045     }
0046 
0047     Kirigami.Icon {
0048         id: gearIcon
0049 
0050         anchors.horizontalCenter: plasmaIcon.right
0051         anchors.verticalCenter: plasmaIcon.bottom
0052         anchors.horizontalCenterOffset: -width / 4
0053         anchors.verticalCenterOffset: -height / 4
0054 
0055         width: Kirigami.Units.iconSizes.huge
0056         height: Kirigami.Units.iconSizes.huge
0057 
0058         source: "process-working-symbolic"
0059 
0060         TapHandler {
0061             onTapped: gearSpin.start()
0062         }
0063 
0064         RotationAnimation {
0065             id: gearSpin
0066 
0067             target: gearIcon
0068             from: 0
0069             to: 180
0070             duration: 800
0071             easing.type: Easing.InOutCubic
0072         }
0073 
0074     }
0075 }