config value to completely hide bottom panel

it stays there just for input area
This commit is contained in:
Marco Martin 2017-09-05 17:02:30 +02:00
parent ec8cf59ddb
commit d60897c0e9
2 changed files with 5 additions and 3 deletions

View file

@ -32,6 +32,7 @@ PlasmaCore.ColorScope {
height: 480 height: 480
colorGroup: PlasmaCore.Theme.ComplementaryColorGroup colorGroup: PlasmaCore.Theme.ComplementaryColorGroup
Plasmoid.backgroundHints: plasmoid.configuration.PanelButtonsVisible ? PlasmaCore.Types.StandardBackground : PlasmaCore.Types.NoBackground
property QtObject taskSwitcher: taskSwitcherLoader.item ? taskSwitcherLoader.item : null property QtObject taskSwitcher: taskSwitcherLoader.item ? taskSwitcherLoader.item : null
Loader { Loader {
@ -95,6 +96,7 @@ PlasmaCore.ColorScope {
width: 600 width: 600
height: 40 height: 40
visible: plasmoid.configuration.PanelButtonsVisible
property Item toolBox property Item toolBox
Button { Button {

View file

@ -22,17 +22,17 @@ import QtQuick.Layouts 1.1
import org.kde.plasma.core 2.0 as PlasmaCore import org.kde.plasma.core 2.0 as PlasmaCore
Rectangle { Item {
id: root id: root
visible: false //adjust borders is run during setup. We want to avoid painting till completed visible: false //adjust borders is run during setup. We want to avoid painting till completed
color: theme.textColor
property Item containment property Item containment
onContainmentChanged: { onContainmentChanged: {
containment.parent = root; containment.parent = root;
containment.visible = true; containment.visible = true;
containment.anchors.fill = root; containment.anchors.fill = root;
panel.backgroundHints = containment.backgroundHints;
} }
Component.onCompleted: { Component.onCompleted: {