shift-shell/shell/contents/views/Panel.qml

31 lines
757 B
QML
Raw Normal View History

/*
2021-03-01 20:03:25 +00:00
* SPDX-FileCopyrightText: 2012 Marco Martin <mart@kde.org>
*
2021-03-01 20:03:25 +00:00
* 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
2017-09-05 15:25:48 +00:00
Rectangle {
id: root
visible: false //adjust borders is run during setup. We want to avoid painting till completed
property Item containment
2020-02-07 12:38:02 +00:00
color: !containment || containment.backgroundHints == PlasmaCore.Types.NoBackground ? "transparent" : theme.textColor
2017-09-05 15:25:48 +00:00
onContainmentChanged: {
containment.parent = root;
containment.visible = true;
containment.anchors.fill = root;
panel.backgroundHints = containment.backgroundHints;
}
Component.onCompleted: {
visible = true
}
}