Warning, /plasma/plasma-sdk/themeexplorer/package/contents/ui/delegates/monitor.qml is written in an unsupported language. File is not indexed.

0001 /*
0002  *   SPDX-FileCopyrightText: 2015 Marco Martin <mart@kde.org>
0003  *
0004  *   SPDX-License-Identifier: LGPL-2.0-or-later
0005  */
0006 
0007 import QtQuick 2.0
0008 import QtQuick.Layouts 1.1
0009 
0010 import org.kde.plasma.components 3.0 as PlasmaComponents
0011 import org.kde.ksvg 1.0 as KSvg
0012 import org.kde.kirigami 2.20 as Kirigami
0013 
0014 Item {
0015     Rectangle {
0016         id: background
0017         anchors {
0018             fill: parent
0019             margins: Kirigami.Units.gridUnit
0020         }
0021         radius: 3
0022         color: Kirigami.Theme.backgroundColor
0023         opacity: 0.6
0024     }
0025     KSvg.SvgItem {
0026         anchors {
0027             horizontalCenter: parent.horizontalCenter
0028             top: screen.bottom
0029             topMargin: -units.gridUnit
0030         }
0031         imagePath: "widgets/monitor"
0032         elementId: "base"
0033     }
0034     KSvg.FrameSvgItem {
0035         id: screen
0036         anchors {
0037             left: background.left
0038             top: background.top
0039             right: background.right
0040             margins: units.gridUnit
0041         }
0042         height: width / 1.6
0043         imagePath: "widgets/monitor"
0044 
0045         Rectangle {
0046             id: marginsRectangle
0047             anchors {
0048                 fill: parent
0049                 leftMargin: parent.margins.left
0050                 topMargin: parent.margins.top
0051                 rightMargin: parent.margins.right
0052                 bottomMargin: parent.margins.bottom
0053             }
0054             color: "green"
0055             opacity: 0.5
0056             visible: root.showMargins
0057         }
0058     }
0059 
0060     PlasmaComponents.Label {
0061         anchors {
0062             horizontalCenter: background.horizontalCenter
0063             bottom: background.bottom
0064         }
0065         text: model.imagePath
0066         visible: width < background.width
0067     }
0068 }