mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
27 lines
527 B
QML
27 lines
527 B
QML
|
|
/*
|
||
|
|
* SPDX-FileCopyrightText: 2021 Devin Lin <devin@kde.org>
|
||
|
|
*
|
||
|
|
* SPDX-License-Identifier: LGPL-2.0-or-later
|
||
|
|
*/
|
||
|
|
|
||
|
|
import QtQuick 2.15
|
||
|
|
|
||
|
|
import org.kde.plasma.core 2.0 as PlasmaCore
|
||
|
|
|
||
|
|
Rectangle {
|
||
|
|
id: handle
|
||
|
|
|
||
|
|
signal tapped()
|
||
|
|
|
||
|
|
implicitWidth: PlasmaCore.Units.gridUnit * 3
|
||
|
|
implicitHeight: 3
|
||
|
|
radius: height
|
||
|
|
color: PlasmaCore.Theme.textColor
|
||
|
|
opacity: 0.5
|
||
|
|
|
||
|
|
TapHandler {
|
||
|
|
cursorShape: pressed ? Qt.ClosedHandCursor : Qt.PointingHandCursor
|
||
|
|
onTapped: handle.tapped()
|
||
|
|
}
|
||
|
|
}
|