mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-04 02:34:45 +00:00
restore up and down scrolling arrows
This commit is contained in:
parent
0670efbdff
commit
36d080abe0
3 changed files with 26 additions and 6 deletions
|
|
@ -59,11 +59,13 @@ ContainmentLayoutManager.ItemContainer {
|
||||||
if (dragActive) {
|
if (dragActive) {
|
||||||
// Must be 0, 0 as at this point dragCenterX and dragCenterY are on the drag before"
|
// Must be 0, 0 as at this point dragCenterX and dragCenterY are on the drag before"
|
||||||
launcherDragManager.startDrag(delegate);
|
launcherDragManager.startDrag(delegate);
|
||||||
|
launcherDragManager.currentlyDraggedDelegate = delegate;
|
||||||
} else {
|
} else {
|
||||||
launcherDragManager.dropItem(delegate, dragCenterX, dragCenterY);
|
launcherDragManager.dropItem(delegate, dragCenterX, dragCenterY);
|
||||||
plasmoid.editMode = false;
|
plasmoid.editMode = false;
|
||||||
editMode = false;
|
editMode = false;
|
||||||
plasmoid.fullRepresentationItem.stopScroll();
|
plasmoid.fullRepresentationItem.stopScroll();
|
||||||
|
launcherDragManager.currentlyDraggedDelegate = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@ QtObject {
|
||||||
property ContainmentLayoutManager.AppletsLayout appletsLayout
|
property ContainmentLayoutManager.AppletsLayout appletsLayout
|
||||||
property LauncherGrid launcherGrid
|
property LauncherGrid launcherGrid
|
||||||
property FavoriteStrip favoriteStrip
|
property FavoriteStrip favoriteStrip
|
||||||
|
property Delegate currentlyDraggedDelegate
|
||||||
|
|
||||||
readonly property Item spacer: Item {
|
readonly property Item spacer: Item {
|
||||||
width: units.gridUnit * 4
|
width: units.gridUnit * 4
|
||||||
|
|
|
||||||
|
|
@ -50,21 +50,21 @@ Text {
|
||||||
function scrollUp() {
|
function scrollUp() {
|
||||||
autoScrollTimer.scrollDown = false;
|
autoScrollTimer.scrollDown = false;
|
||||||
autoScrollTimer.running = true;
|
autoScrollTimer.running = true;
|
||||||
// scrollUpIndicator.opacity = 1;
|
scrollUpIndicator.opacity = 1;
|
||||||
// scrollDownIndicator.opacity = 0;
|
scrollDownIndicator.opacity = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
function scrollDown() {
|
function scrollDown() {
|
||||||
autoScrollTimer.scrollDown = true;
|
autoScrollTimer.scrollDown = true;
|
||||||
autoScrollTimer.running = true;
|
autoScrollTimer.running = true;
|
||||||
// scrollUpIndicator.opacity = 0;
|
scrollUpIndicator.opacity = 0;
|
||||||
// scrollDownIndicator.opacity = 1;
|
scrollDownIndicator.opacity = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
function stopScroll() {
|
function stopScroll() {
|
||||||
autoScrollTimer.running = false;
|
autoScrollTimer.running = false;
|
||||||
// scrollUpIndicator.opacity = 0;
|
scrollUpIndicator.opacity = 0;
|
||||||
// scrollDownIndicator.opacity = 0;
|
scrollDownIndicator.opacity = 0;
|
||||||
}
|
}
|
||||||
//END functions
|
//END functions
|
||||||
|
|
||||||
|
|
@ -247,6 +247,23 @@ Text {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ScrollIndicator {
|
||||||
|
id: scrollUpIndicator
|
||||||
|
anchors {
|
||||||
|
top: parent.top
|
||||||
|
topMargin: units.gridUnit * 2
|
||||||
|
}
|
||||||
|
elementId: "up-arrow"
|
||||||
|
}
|
||||||
|
ScrollIndicator {
|
||||||
|
id: scrollDownIndicator
|
||||||
|
anchors {
|
||||||
|
bottom: parent.bottom
|
||||||
|
bottomMargin: units.gridUnit * 2
|
||||||
|
}
|
||||||
|
elementId: "down-arrow"
|
||||||
|
}
|
||||||
|
|
||||||
Launcher.FavoriteStrip {
|
Launcher.FavoriteStrip {
|
||||||
id: favoriteStrip
|
id: favoriteStrip
|
||||||
anchors {
|
anchors {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue