Warning, /plasma/latte-dock/declarativeimports/components/private/DefaultListItemBackground.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 SPDX-FileCopyrightText: 2016 Marco Martin <mart@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 import QtQuick 2.1 0008 //for Settings 0009 import org.kde.plasma.core 2.0 as PlasmaCore 0010 import org.kde.kirigami 2.2 as Kirigami 0011 0012 PlasmaCore.FrameSvgItem { 0013 id: background 0014 0015 property bool separatorVisible: false 0016 imagePath: "widgets/listitem" 0017 prefix: control.highlighted || control.pressed ? "pressed" : "normal" 0018 0019 visible: control.ListView.view ? control.ListView.view.highlight === null : true 0020 0021 PlasmaCore.FrameSvgItem { 0022 imagePath: "widgets/listitem" 0023 visible: !Kirigami.Settings.isMobile 0024 prefix: "hover" 0025 anchors.fill: parent 0026 opacity: control.hovered && !control.pressed ? 1 : 0 0027 Behavior on opacity { NumberAnimation { duration: units.longDuration } } 0028 } 0029 0030 PlasmaCore.SvgItem { 0031 svg: PlasmaCore.Svg {imagePath: "widgets/listitem"} 0032 elementId: "separator" 0033 anchors { 0034 left: parent.left 0035 right: parent.right 0036 top: parent.top 0037 } 0038 height: naturalSize.height 0039 visible: separatorVisible && (listItem.sectionDelegate || (typeof(index) != "undefined" && index > 0 && !listItem.checked && !itemMouse.pressed)) 0040 } 0041 }