Center position Tasks when in the Desktop

pull/6/head
Michail Vourlakos 6 years ago
parent 64589345ff
commit 0768975765

@ -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;

Loading…
Cancel
Save