1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-13 05:17:48 +03:00

disable scrolling shadows when Tasks in desktop

This commit is contained in:
Michail Vourlakos 2019-06-17 10:08:06 +03:00
parent a7abf5d309
commit 2e5a018678
2 changed files with 9 additions and 2 deletions

View File

@ -17,6 +17,7 @@
import QtQuick 2.7
import org.kde.plasma.plasmoid 2.0
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.latte 0.2 as Latte
@ -25,7 +26,7 @@ Rectangle {
id: listViewBase
x: {
if (!root.vertical) {
if (root.userPanelPosition === Latte.Types.Center) {
if (root.userPanelPosition === Latte.Types.Center || plasmoid.location===PlasmaCore.Types.Floating) {
return icList.width / 2;
} else if (root.userPanelPosition === Latte.Types.Left){
return 0;

View File

@ -35,7 +35,13 @@ Flickable{
readonly property bool centered: userPanelPosition === Latte.Types.Center
readonly property bool reversed: Qt.application.layoutDirection === Qt.RightToLeft
readonly property bool contentsExceed: !root.vertical ? Math.floor(contentWidth) > width : Math.floor(contentHeight) > height
readonly property bool contentsExceed: {
if (root.scrollingEnabled) {
return (!root.vertical ? Math.floor(contentWidth) > width : Math.floor(contentHeight) > height);
}
return false;
}
readonly property int contentsExtraSpace: {
if (contentsExceed) {
if (!root.vertical) {