Comments only, no code changes. Replaces vague or personified phrasing with explicit statements of what the code does and why, uses bullet lists for multi-case behavior, and fixes the settings path in WindowSettings.h (~/.config/sloposk/sloposk.conf). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
27 lines
584 B
QML
27 lines
584 B
QML
import QtQuick
|
|
|
|
// Grab bar below the keyboard. Only emits dragStarted(); the parent starts
|
|
// the window manager's move (works for mouse and touch).
|
|
Item {
|
|
id: handle
|
|
|
|
// Set smaller when the bar's buttons take up more width.
|
|
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()
|
|
}
|
|
}
|