shift-shell/components/mobileshell/qml/actiondrawer/private/Handle.qml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
557 B
QML
Raw Normal View History

/*
* SPDX-FileCopyrightText: 2021 Devin Lin <devin@kde.org>
*
* SPDX-License-Identifier: LGPL-2.0-or-later
*/
import QtQuick 2.15
import org.kde.kirigami as Kirigami
Rectangle {
id: handle
2024-07-27 03:47:44 +00:00
signal tapped()
2024-07-27 03:47:44 +00:00
implicitWidth: Kirigami.Units.gridUnit * 3
implicitHeight: 3
radius: height
color: Qt.rgba(Kirigami.Theme.textColor.r, Kirigami.Theme.textColor.g, Kirigami.Theme.textColor.b, 0.5)
2024-07-27 03:47:44 +00:00
TapHandler {
cursorShape: pressed ? Qt.ClosedHandCursor : Qt.PointingHandCursor
onTapped: handle.tapped()
}
}