Commit 38459f3e authored by Marco Martin's avatar Marco Martin

bottom panel transparent when showing desktop

parent 902eed02
......@@ -172,7 +172,7 @@ Item {
Column {
id: flickableContents
width: mainFlickable.width
spacing: Math.max(0, favoriteStrip.frame.height - mainFlickable.contentY)
spacing: Math.max(0, favoriteStrip.frame.height + favoriteStrip.anchors.bottomMargin - mainFlickable.contentY)
DragDrop.DropArea {
anchors {
......
......@@ -32,7 +32,9 @@ PlasmaCore.ColorScope {
height: 480
//colorGroup: PlasmaCore.Theme.ComplementaryColorGroup
Plasmoid.backgroundHints: plasmoid.configuration.PanelButtonsVisible ? PlasmaCore.Types.StandardBackground : PlasmaCore.Types.NoBackground
Plasmoid.backgroundHints: PlasmaCore.Types.NoBackground
readonly property bool showingApp: tasksModel.activeTask && tasksModel.activeTask.valid && !tasksModel.data(tasksModel.activeTask, TaskManager.AbstractTasksModel.IsFullScreen)
property QtObject taskSwitcher: taskSwitcherLoader.item ? taskSwitcherLoader.item : null
Loader {
......@@ -45,6 +47,16 @@ PlasmaCore.ColorScope {
onTriggered: taskSwitcherLoader.source = Qt.resolvedUrl("TaskSwitcher.qml")
}
TaskManager.TasksModel {
id: tasksModel
sortMode: TaskManager.TasksModel.SortVirtualDesktop
groupMode: TaskManager.TasksModel.GroupDisabled
screenGeometry: plasmoid.screenGeometry
filterByScreen: plasmoid.configuration.showForCurrentScreenOnly
}
MouseArea {
id: mainMouseArea
anchors.fill: parent
......@@ -88,12 +100,26 @@ PlasmaCore.ColorScope {
}
}
Rectangle {
Item {
anchors.fill: parent
color: root.backgroundColor
visible: plasmoid.configuration.PanelButtonsVisible
property Item toolBox
Rectangle {
anchors.fill: parent
color: root.backgroundColor
opacity: showingApp ? 1 : 0.9
Rectangle {
anchors {
left: parent.left
right: parent.right
top: parent.top
}
height: 1
color: PlasmaCore.ColorScope.textColor
opacity: 0.2
}
}
Button {
anchors.left: parent.left
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment