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

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

27 lines
507 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 2.20 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: Kirigami.Theme.textColor
opacity: 0.5
2024-07-27 03:47:44 +00:00
TapHandler {
cursorShape: pressed ? Qt.ClosedHandCursor : Qt.PointingHandCursor
onTapped: handle.tapped()
}
}