Warning, /plasma/plasma-nano/desktoptoolbox/contents/ui/main.qml is written in an unsupported language. File is not indexed.

0001 /*
0002  *   SPDX-FileCopyrightText: 2011 Sebastian Kügler <sebas@kde.org>
0003  *   SPDX-FileCopyrightText: 2019 Marco Martin <mart@kde.org>
0004  *   SPDX-FileCopyrightText: 2015 Kai Uwe Broulik <kde@privat.broulik.de>
0005  *
0006  *   SPDX-License-Identifier: LGPL-2.0-or-later
0007  */
0008 
0009 import QtQuick 2.2
0010 import QtQuick.Window 2.2
0011 import org.kde.kirigami 2.20 as Kirigami
0012 import org.kde.plasma.plasmoid 2.0
0013 
0014 
0015 Item {
0016     id: main
0017     objectName: "org.kde.desktoptoolbox"
0018 
0019     z: 999
0020     anchors.fill: parent
0021 
0022     Rectangle {
0023         anchors {
0024             left: parent.left
0025             bottom: parent.bottom
0026             right: parent.right
0027         }
0028 
0029         height: configButtons.height + configButtons.anchors.bottomMargin
0030 
0031         opacity: plasmoid.containment.corona.editMode
0032         Behavior on opacity {
0033             OpacityAnimator {
0034                 duration: Kirigami.Units.longDuration
0035                 easing.type: Easing.InOutQuad
0036             }
0037         }
0038 
0039         gradient: Gradient {
0040             GradientStop { position: 0.0; color: "transparent" }
0041             GradientStop { position: 1.0; color: "black" }
0042         }
0043     }
0044 
0045     DesktopConfigButtons {
0046         id: configButtons
0047         anchors {
0048             bottom: parent.bottom
0049             horizontalCenter: parent.horizontalCenter
0050             bottomMargin: main.height - (plasmoid.availableScreenRect.y + plasmoid.availableScreenRect.height)
0051         }
0052     }
0053 }