mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-04 10:44:46 +00:00
make space for the top krunner ui
This commit is contained in:
parent
b9dfc7d768
commit
65e85b7719
3 changed files with 6 additions and 2 deletions
|
|
@ -167,7 +167,7 @@ MouseEventListener {
|
||||||
SatelliteStripe {
|
SatelliteStripe {
|
||||||
id: stripe
|
id: stripe
|
||||||
z: 99
|
z: 99
|
||||||
property int viewPos: applicationsView.contentItem.height * applicationsView.visibleArea.yPosition
|
property int viewPos: applicationsView.contentItem.height * applicationsView.visibleArea.yPosition + krunner.inputHeight
|
||||||
|
|
||||||
y: Math.max(viewPos,
|
y: Math.max(viewPos,
|
||||||
Math.min(parent.height, viewPos + plasmoid.availableScreenRect.y + plasmoid.availableScreenRect.height - height) + Math.max(0, -(parent.height - height + applicationsView.contentY)))
|
Math.min(parent.height, viewPos + plasmoid.availableScreenRect.y + plasmoid.availableScreenRect.height - height) + Math.max(0, -(parent.height - height + applicationsView.contentY)))
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,7 @@ Rectangle {
|
||||||
height: childrenRect.height
|
height: childrenRect.height
|
||||||
color: listView.visible ? Qt.rgba(0, 0, 0, 0.8) : "transparent"
|
color: listView.visible ? Qt.rgba(0, 0, 0, 0.8) : "transparent"
|
||||||
property alias showingResults: listView.visible
|
property alias showingResults: listView.visible
|
||||||
|
property int inputHeight: queryField.height + background.fixedMargins.top/2 + background.fixedMargins.bottom
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
enabled: listView.visible
|
enabled: listView.visible
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
|
||||||
|
|
||||||
import QtQuick 2.0
|
import QtQuick 2.0
|
||||||
import org.kde.plasma.core 2.0 as PlasmaCore
|
import org.kde.plasma.core 2.0 as PlasmaCore
|
||||||
|
|
||||||
|
|
@ -15,7 +17,8 @@ PlasmaCore.ColorScope {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
height: applicationsView.cellWidth
|
//cut away one line from the favorites bar
|
||||||
|
height: applicationsView.cellWidth - units.gridUnit
|
||||||
width: parent.width
|
width: parent.width
|
||||||
y: parent.height / 2 - height / 2
|
y: parent.height / 2 - height / 2
|
||||||
x: 0
|
x: 0
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue