Files
sloposk/qml/DragHandle.qml
T
ericek111andClaude Opus 5.5 ac5f43ca5f Add quick toggles to the grab bar
Beside the gear: full keyboard, hold keys, and the numeric keypad,
navigation and function key sections, each behind a drawn icon and lit
while on. Section toggles hide when the layout lacks the section. The
grab pill narrows when a small window leaves it less room.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 00:29:48 +01:00

27 lines
611 B
QML

import QtQuick
// The grab bar under the floating keyboard. Moving the window is up to the
// owner (the window manager's move, so it works for mouse and touch alike).
Item {
id: handle
// Narrower when the bar's buttons leave less room in the middle.
property real pillWidth: 120
signal dragStarted()
implicitHeight: 22
Rectangle {
anchors.centerIn: parent
width: handle.pillWidth
height: 5
radius: height / 2
color: Theme.handle
}
DragHandler {
target: null
onActiveChanged: if (active) handle.dragStarted()
}
}