Warning, /plasma/qqc2-breeze-style/style/impl/ListViewHighlight.qml is written in an unsupported language. File is not indexed.
0001 /* SPDX-FileCopyrightText: 2020 Noah Davis <noahadvs@gmail.com>
0002 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0003 */
0004
0005 import QtQuick
0006 import org.kde.kirigami as Kirigami
0007
0008 import "." as Impl
0009
0010 Kirigami.ShadowedRectangle {
0011 id: root
0012 property int currentIndex: -1
0013 property int count: 0
0014 property bool alwaysCurveCorners: false
0015 readonly property real topRadius: (alwaysCurveCorners || root.currentIndex == 0) ? Impl.Units.smallRadius : 0
0016 readonly property real bottomRadius: (alwaysCurveCorners || root.currentIndex == Math.max(root.count-1, 0)) ? Impl.Units.smallRadius : 0
0017
0018 Kirigami.Theme.colorSet: Kirigami.Theme.Selection
0019 Kirigami.Theme.inherit: false
0020
0021 corners {
0022 topLeftRadius: root.topRadius
0023 topRightRadius: root.topRadius
0024 bottomLeftRadius: root.bottomRadius
0025 bottomRightRadius: root.bottomRadius
0026 }
0027
0028 color: Kirigami.Theme.alternateBackgroundColor
0029 border {
0030 width: Impl.Units.smallBorder
0031 color: Kirigami.Theme.focusColor
0032 }
0033 }