2019-10-04 14:02:26 +00:00
|
|
|
/*
|
2021-03-01 20:03:25 +00:00
|
|
|
* SPDX-FileCopyrightText: 2019 Marco Martin <mart@kde.org>
|
2019-10-04 14:02:26 +00:00
|
|
|
*
|
2021-03-01 20:03:25 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
2019-10-04 14:02:26 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
import QtQuick 2.6
|
|
|
|
|
import QtQuick.Layouts 1.4
|
|
|
|
|
import QtQuick.Controls 2.4 as QQC2
|
2021-04-09 20:59:05 +00:00
|
|
|
import QtGraphicalEffects 1.12
|
2019-10-04 14:02:26 +00:00
|
|
|
|
|
|
|
|
import org.kde.plasma.core 2.0 as PlasmaCore
|
2020-09-12 01:57:56 +00:00
|
|
|
import org.kde.kirigami 2.12 as Kirigami
|
2019-10-04 14:02:26 +00:00
|
|
|
|
|
|
|
|
QQC2.Control {
|
|
|
|
|
id: root
|
2021-04-09 20:59:05 +00:00
|
|
|
|
|
|
|
|
required property color backgroundColor
|
|
|
|
|
|
2020-08-29 16:18:47 +00:00
|
|
|
leftPadding: units.largeSpacing
|
|
|
|
|
topPadding: units.largeSpacing
|
|
|
|
|
rightPadding: units.largeSpacing
|
|
|
|
|
bottomPadding: units.largeSpacing
|
2019-10-04 14:02:26 +00:00
|
|
|
|
2020-08-29 16:18:47 +00:00
|
|
|
background: Item {
|
2019-10-09 14:11:10 +00:00
|
|
|
MouseArea {
|
2020-08-29 16:18:47 +00:00
|
|
|
anchors.fill: parent
|
|
|
|
|
}
|
2021-04-09 20:59:05 +00:00
|
|
|
PlasmaCore.FrameSvgItem {
|
|
|
|
|
imagePath: "widgets/panel-background"
|
|
|
|
|
prefix: "shadow"
|
|
|
|
|
anchors.fill: container
|
|
|
|
|
anchors.margins: -PlasmaCore.Units.smallSpacing
|
|
|
|
|
}
|
2020-08-29 16:18:47 +00:00
|
|
|
Rectangle {
|
|
|
|
|
id: container
|
2021-04-09 20:59:05 +00:00
|
|
|
color: backgroundColor
|
2020-08-29 16:18:47 +00:00
|
|
|
anchors {
|
|
|
|
|
fill: parent
|
2020-09-12 02:01:28 +00:00
|
|
|
leftMargin: PlasmaCore.Units.smallSpacing
|
|
|
|
|
rightMargin: PlasmaCore.Units.smallSpacing
|
|
|
|
|
topMargin: PlasmaCore.Units.smallSpacing
|
|
|
|
|
bottomMargin: PlasmaCore.Units.smallSpacing
|
2020-08-29 16:18:47 +00:00
|
|
|
}
|
2020-09-12 02:01:28 +00:00
|
|
|
radius: PlasmaCore.Units.smallSpacing
|
2019-10-09 14:11:10 +00:00
|
|
|
}
|
2019-10-04 14:02:26 +00:00
|
|
|
}
|
|
|
|
|
}
|