Warning, /plasma/plasma-sdk/themeexplorer/package/contents/ui/delegates/scrollbar.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.plasma.extras 2.0 as PlasmaExtras
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     Column {
0026         anchors.centerIn: background
0027         PlasmaExtras.ScrollArea {
0028             width: background.width - units.gridUnit*2
0029             height: width
0030             Item {
0031                 width: background.width * 2
0032                 height: width
0033             }
0034         }
0035         PlasmaComponents.Label {
0036             anchors.horizontalCenter: parent.horizontalCenter
0037             text: model.imagePath
0038             visible: width < background.width
0039         }
0040     }
0041 }