mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-01 17:24:48 +00:00
change property name
This commit is contained in:
parent
fb8494fec4
commit
aa4ddf8afd
2 changed files with 5 additions and 4 deletions
|
|
@ -56,9 +56,10 @@ Item {
|
||||||
property bool opened: false
|
property bool opened: false
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether the panel can be opened with one stroke.
|
* Whether the panel should open to pinned mode first, with a second stroke needed to full open.
|
||||||
|
* Only applies to portrait mode.
|
||||||
*/
|
*/
|
||||||
property bool expandable: false
|
property bool openToPinnedMode: true
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Direction the panel is currently moving in.
|
* Direction the panel is currently moving in.
|
||||||
|
|
@ -114,7 +115,7 @@ Item {
|
||||||
offset = 0;
|
offset = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (offset >= contentContainerLoader.minimizedQuickSettingsOffset && expandable) {
|
if (offset >= contentContainerLoader.minimizedQuickSettingsOffset && !openToPinnedMode) {
|
||||||
root.opened = true;
|
root.opened = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ MouseArea {
|
||||||
onPressed: {
|
onPressed: {
|
||||||
oldMouseY = mouse.y;
|
oldMouseY = mouse.y;
|
||||||
|
|
||||||
actionDrawer.expandable = mouse.x < root.width/2 ? true : false;
|
actionDrawer.openToPinnedMode = mouse.x < root.width/2 ? false : true;
|
||||||
|
|
||||||
startSwipe();
|
startSwipe();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue