From 076897576560ce376334a115f1528a9e389fbbfb Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Mon, 17 Jun 2019 17:58:28 +0300 Subject: [PATCH] Center position Tasks when in the Desktop --- .../package/contents/ui/taskslayout/ScrollPositioner.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plasmoid/package/contents/ui/taskslayout/ScrollPositioner.qml b/plasmoid/package/contents/ui/taskslayout/ScrollPositioner.qml index 69f15efb1..99f01b1b4 100644 --- a/plasmoid/package/contents/ui/taskslayout/ScrollPositioner.qml +++ b/plasmoid/package/contents/ui/taskslayout/ScrollPositioner.qml @@ -26,7 +26,10 @@ Rectangle { id: listViewBase x: { if (!root.vertical) { - if (root.userPanelPosition === Latte.Types.Center || plasmoid.location===PlasmaCore.Types.Floating) { + if (plasmoid.location===PlasmaCore.Types.Floating) { + //! Center position Tasks when are located in the Desktop + return root.width < icList.width ? (root.width/2) : icList.width/2; + } else if (root.userPanelPosition === Latte.Types.Center) { return icList.width / 2; } else if (root.userPanelPosition === Latte.Types.Left){ return 0;