shift-shell/containments/panel/package/contents/ui/DrawerBackground.qml

51 lines
1.7 KiB
QML
Raw Normal View History

2019-10-04 14:02:26 +00:00
/*
* Copyright 2019 Marco Martin <mart@kde.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 2.010-1301, USA.
*/
import QtQuick 2.6
import QtQuick.Layouts 1.4
import QtQuick.Controls 2.4 as QQC2
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
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
}
Rectangle {
id: container
2020-09-12 01:57:56 +00:00
color: Kirigami.ColorUtils.adjustColor(PlasmaCore.ColorScope.backgroundColor, {"alpha": 0.85*255})
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
}
}