From 65e85b7719d5c89b1b7056e9814351b930a3667b Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Mon, 22 Jun 2015 16:41:23 -0700 Subject: [PATCH] make space for the top krunner ui --- containments/homescreen/package/contents/ui/AppletsArea.qml | 2 +- containments/homescreen/package/contents/ui/KRunner.qml | 1 + .../homescreen/package/contents/ui/SatelliteStripe.qml | 5 ++++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/containments/homescreen/package/contents/ui/AppletsArea.qml b/containments/homescreen/package/contents/ui/AppletsArea.qml index 1253507c..7b19220a 100644 --- a/containments/homescreen/package/contents/ui/AppletsArea.qml +++ b/containments/homescreen/package/contents/ui/AppletsArea.qml @@ -167,7 +167,7 @@ MouseEventListener { SatelliteStripe { id: stripe 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, Math.min(parent.height, viewPos + plasmoid.availableScreenRect.y + plasmoid.availableScreenRect.height - height) + Math.max(0, -(parent.height - height + applicationsView.contentY))) diff --git a/containments/homescreen/package/contents/ui/KRunner.qml b/containments/homescreen/package/contents/ui/KRunner.qml index e87408cd..f47aaff5 100644 --- a/containments/homescreen/package/contents/ui/KRunner.qml +++ b/containments/homescreen/package/contents/ui/KRunner.qml @@ -35,6 +35,7 @@ Rectangle { height: childrenRect.height color: listView.visible ? Qt.rgba(0, 0, 0, 0.8) : "transparent" property alias showingResults: listView.visible + property int inputHeight: queryField.height + background.fixedMargins.top/2 + background.fixedMargins.bottom MouseArea { enabled: listView.visible diff --git a/containments/homescreen/package/contents/ui/SatelliteStripe.qml b/containments/homescreen/package/contents/ui/SatelliteStripe.qml index 5b65311a..1480668e 100644 --- a/containments/homescreen/package/contents/ui/SatelliteStripe.qml +++ b/containments/homescreen/package/contents/ui/SatelliteStripe.qml @@ -1,3 +1,5 @@ + + import QtQuick 2.0 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 y: parent.height / 2 - height / 2 x: 0