2015-03-13 21:16:19 +00:00
|
|
|
/*
|
2021-03-01 20:03:25 +00:00
|
|
|
* SPDX-FileCopyrightText: 2012 Marco Martin <mart@kde.org>
|
2015-03-13 21:16:19 +00:00
|
|
|
*
|
2021-03-01 20:03:25 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
2015-03-13 21:16:19 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
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 {
|
2015-03-13 21:16:19 +00:00
|
|
|
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
|
|
|
|
2015-03-13 21:16:19 +00:00
|
|
|
onContainmentChanged: {
|
|
|
|
|
containment.parent = root;
|
|
|
|
|
containment.visible = true;
|
|
|
|
|
containment.anchors.fill = root;
|
2017-09-05 15:02:30 +00:00
|
|
|
panel.backgroundHints = containment.backgroundHints;
|
2015-03-13 21:16:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Component.onCompleted: {
|
|
|
|
|
visible = true
|
|
|
|
|
}
|
|
|
|
|
}
|