mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-28 06:33: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
|
||||
|
||||
PlasmaCore.FrameSvgItem {
|
||||
id: background
|
||||
imagePath: "widgets/background"
|
||||
enabledBorders: PlasmaCore.FrameSvg.BottomBorder
|
||||
height: childrenRect.height + margins.bottom
|
||||
height: childrenRect.height + fixedMargins.top/2 + fixedMargins.bottom
|
||||
|
||||
ColumnLayout {
|
||||
anchors {
|
||||
left: parent.left
|
||||
right: parent.right
|
||||
top: parent.top
|
||||
topMargin: background.fixedMargins.top / 2
|
||||
leftMargin: background.fixedMargins.left / 2
|
||||
rightMargin: background.fixedMargins.right / 2
|
||||
}
|
||||
PlasmaComponents.TextField {
|
||||
id: queryField
|
||||
|
|
|
|||
|
|
@ -283,8 +283,10 @@ MouseEventListener {
|
|||
KRunner {
|
||||
z: 1000
|
||||
anchors {
|
||||
top: parent.top
|
||||
left: parent.left
|
||||
right: parent.right
|
||||
topMargin: plasmoid.availableScreenRect.y
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue