mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
add some margins
don't make the panel cover krunner
This commit is contained in:
parent
ac6fa1866e
commit
8a55d4a285
2 changed files with 7 additions and 1 deletions
|
|
@ -30,15 +30,19 @@ import org.kde.plasma.extras 2.0 as PlasmaExtras
|
||||||
import org.kde.milou 0.1 as Milou
|
import org.kde.milou 0.1 as Milou
|
||||||
|
|
||||||
PlasmaCore.FrameSvgItem {
|
PlasmaCore.FrameSvgItem {
|
||||||
|
id: background
|
||||||
imagePath: "widgets/background"
|
imagePath: "widgets/background"
|
||||||
enabledBorders: PlasmaCore.FrameSvg.BottomBorder
|
enabledBorders: PlasmaCore.FrameSvg.BottomBorder
|
||||||
height: childrenRect.height + margins.bottom
|
height: childrenRect.height + fixedMargins.top/2 + fixedMargins.bottom
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
anchors {
|
anchors {
|
||||||
left: parent.left
|
left: parent.left
|
||||||
right: parent.right
|
right: parent.right
|
||||||
top: parent.top
|
top: parent.top
|
||||||
|
topMargin: background.fixedMargins.top / 2
|
||||||
|
leftMargin: background.fixedMargins.left / 2
|
||||||
|
rightMargin: background.fixedMargins.right / 2
|
||||||
}
|
}
|
||||||
PlasmaComponents.TextField {
|
PlasmaComponents.TextField {
|
||||||
id: queryField
|
id: queryField
|
||||||
|
|
|
||||||
|
|
@ -283,8 +283,10 @@ MouseEventListener {
|
||||||
KRunner {
|
KRunner {
|
||||||
z: 1000
|
z: 1000
|
||||||
anchors {
|
anchors {
|
||||||
|
top: parent.top
|
||||||
left: parent.left
|
left: parent.left
|
||||||
right: parent.right
|
right: parent.right
|
||||||
|
topMargin: plasmoid.availableScreenRect.y
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue