mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-28 22:53:09 +00:00
placeholder areas for settings and lock
This commit is contained in:
parent
0c531de5b0
commit
50fc65fe67
1 changed files with 32 additions and 4 deletions
|
|
@ -91,6 +91,7 @@ Item {
|
||||||
LayoutManager.layout = appletsSpace.layout;
|
LayoutManager.layout = appletsSpace.layout;
|
||||||
LayoutManager.lastSpacer = appletsSpace.lastSpacer;
|
LayoutManager.lastSpacer = appletsSpace.lastSpacer;
|
||||||
LayoutManager.restore();
|
LayoutManager.restore();
|
||||||
|
applicationsView.contentY = -root.height;
|
||||||
}
|
}
|
||||||
|
|
||||||
SatelliteComponents.ApplicationListModel {
|
SatelliteComponents.ApplicationListModel {
|
||||||
|
|
@ -166,10 +167,10 @@ Item {
|
||||||
delegate: HomeLauncher {}
|
delegate: HomeLauncher {}
|
||||||
header: MouseArea {
|
header: MouseArea {
|
||||||
z: 999
|
z: 999
|
||||||
property Item layout: mainLayout
|
property Item layout: appletsLayout
|
||||||
property Item lastSpacer: spacer
|
property Item lastSpacer: spacer
|
||||||
width: root.width
|
width: root.width
|
||||||
height: Math.max(root.height, ((root.height - units.gridUnit * 2)/2) * mainLayout.children.length)
|
height: mainLayout.Layout.minimumHeight + stripe.height + units.gridUnit * 2
|
||||||
|
|
||||||
onPressAndHold: {
|
onPressAndHold: {
|
||||||
plasmoid.action("configure").trigger();
|
plasmoid.action("configure").trigger();
|
||||||
|
|
@ -182,9 +183,36 @@ Item {
|
||||||
bottomMargin: stripe.height + units.gridUnit * 2
|
bottomMargin: stripe.height + units.gridUnit * 2
|
||||||
}
|
}
|
||||||
Item {
|
Item {
|
||||||
id: spacer
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.fillHeight: true
|
Layout.minimumHeight: root.height
|
||||||
|
PlasmaCore.IconItem {
|
||||||
|
source: "go-up"
|
||||||
|
width: units.iconSizes.huge
|
||||||
|
height: width
|
||||||
|
anchors {
|
||||||
|
horizontalCenter: parent.horizontalCenter
|
||||||
|
bottom: parent.bottom
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Rectangle {
|
||||||
|
color: Qt.rgba(0, 0, 0, 0.6)
|
||||||
|
Layout.fillWidth: true
|
||||||
|
Layout.minimumHeight: root.height
|
||||||
|
PlasmaComponents.Label {
|
||||||
|
anchors.centerIn: parent
|
||||||
|
text: "Settings Area"
|
||||||
|
font.pointSize: 20
|
||||||
|
}
|
||||||
|
}
|
||||||
|
ColumnLayout {
|
||||||
|
id: appletsLayout
|
||||||
|
Layout.minimumHeight: Math.max(root.height, Layout.preferredHeight)
|
||||||
|
Item {
|
||||||
|
id: spacer
|
||||||
|
Layout.fillWidth: true
|
||||||
|
Layout.fillHeight: true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
SatelliteStripe {
|
SatelliteStripe {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue