mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-28 22:53:09 +00:00
remove the settings area
This commit is contained in:
parent
1865651723
commit
08e13e7cc2
1 changed files with 2 additions and 12 deletions
|
|
@ -165,13 +165,13 @@ Item {
|
||||||
snapMode: GridView.SnapToRow
|
snapMode: GridView.SnapToRow
|
||||||
|
|
||||||
onFlickingChanged: {
|
onFlickingChanged: {
|
||||||
if (!draggingVertically && contentY < -root.height*2) {
|
if (!draggingVertically && contentY < -headerItem.height + root.height) {
|
||||||
scrollAnim.to = Math.round(contentY/root.height) * root.height
|
scrollAnim.to = Math.round(contentY/root.height) * root.height
|
||||||
scrollAnim.running = true;
|
scrollAnim.running = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
onDraggingVerticallyChanged: {
|
onDraggingVerticallyChanged: {
|
||||||
if (!draggingVertically && contentY < -root.height*2) {
|
if (!draggingVertically && contentY < -headerItem.height + root.height) {
|
||||||
scrollAnim.to = Math.round(contentY/root.height) * root.height
|
scrollAnim.to = Math.round(contentY/root.height) * root.height
|
||||||
scrollAnim.running = true;
|
scrollAnim.running = true;
|
||||||
}
|
}
|
||||||
|
|
@ -224,16 +224,6 @@ Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
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 {
|
ColumnLayout {
|
||||||
id: appletsLayout
|
id: appletsLayout
|
||||||
Layout.minimumHeight: Math.max(root.height, Math.round(Layout.preferredHeight / root.height) * root.height)
|
Layout.minimumHeight: Math.max(root.height, Math.round(Layout.preferredHeight / root.height) * root.height)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue