mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
fix main layout
This commit is contained in:
parent
2a0152bad0
commit
1de2633a5b
1 changed files with 26 additions and 40 deletions
|
|
@ -133,23 +133,16 @@ Rectangle {
|
||||||
}
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
anchors.fill: parent
|
|
||||||
GridLayout {
|
|
||||||
id: topBar
|
|
||||||
anchors {
|
anchors {
|
||||||
top: parent.top
|
fill: parent
|
||||||
left: parent.left
|
margins: units.smallSpacing
|
||||||
right: parent.right
|
|
||||||
topMargin: 0
|
|
||||||
leftMargin: units.smallSpacing
|
|
||||||
}
|
}
|
||||||
columns: 2
|
spacing: units.smallSpacing
|
||||||
|
|
||||||
PlasmaExtras.Title {
|
PlasmaExtras.Title {
|
||||||
id: heading
|
id: heading
|
||||||
text: i18nd("plasma_shell_org.kde.plasma.desktop", "Widgets")
|
text: i18nd("plasma_shell_org.kde.plasma.desktop", "Widgets")
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
|
||||||
|
|
||||||
PlasmaComponents.ToolButton {
|
PlasmaComponents.ToolButton {
|
||||||
id: closeButton
|
id: closeButton
|
||||||
|
|
@ -160,6 +153,7 @@ Rectangle {
|
||||||
iconSource: "window-close"
|
iconSource: "window-close"
|
||||||
onClicked: removeAnim.running = true;
|
onClicked: removeAnim.running = true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
PlasmaComponents.TextField {
|
PlasmaComponents.TextField {
|
||||||
id: searchInput
|
id: searchInput
|
||||||
|
|
@ -172,21 +166,13 @@ Rectangle {
|
||||||
}
|
}
|
||||||
|
|
||||||
Component.onCompleted: forceActiveFocus()
|
Component.onCompleted: forceActiveFocus()
|
||||||
Layout.columnSpan: 2
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
PlasmaExtras.ScrollArea {
|
PlasmaExtras.ScrollArea {
|
||||||
anchors {
|
Layout.fillHeight: true
|
||||||
top: topBar.bottom
|
Layout.fillWidth: true
|
||||||
left: parent.left
|
|
||||||
right: parent.right
|
|
||||||
bottom: bottomBar.top
|
|
||||||
topMargin: units.smallSpacing
|
|
||||||
leftMargin: units.smallSpacing
|
|
||||||
bottomMargin: units.smallSpacing
|
|
||||||
}
|
|
||||||
GridView {
|
GridView {
|
||||||
id: list
|
id: list
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue