mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
30 lines
757 B
QML
30 lines
757 B
QML
/*
|
|
* SPDX-FileCopyrightText: 2012 Marco Martin <mart@kde.org>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
import QtQuick 2.0
|
|
import QtQuick.Layouts 1.1
|
|
|
|
import org.kde.plasma.core 2.0 as PlasmaCore
|
|
|
|
Rectangle {
|
|
id: root
|
|
|
|
visible: false //adjust borders is run during setup. We want to avoid painting till completed
|
|
property Item containment
|
|
|
|
color: !containment || containment.backgroundHints == PlasmaCore.Types.NoBackground ? "transparent" : theme.textColor
|
|
|
|
onContainmentChanged: {
|
|
containment.parent = root;
|
|
containment.visible = true;
|
|
containment.anchors.fill = root;
|
|
panel.backgroundHints = containment.backgroundHints;
|
|
}
|
|
|
|
Component.onCompleted: {
|
|
visible = true
|
|
}
|
|
}
|