Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01A8TNMgnEa7Kia5Wcz2kyDx
36 lines
862 B
QML
36 lines
862 B
QML
import QtQuick
|
|
import "."
|
|
|
|
// Row of "key label" keyboard hints shown under launcher-style overlays,
|
|
// e.g. [ [↑↓, "Navigate"], ["↵", "Launch"], ["Esc", "Close"] ].
|
|
Row {
|
|
id: hintBar
|
|
|
|
property var hints: []
|
|
|
|
spacing: Theme.geometry.spacing * 2
|
|
|
|
Repeater {
|
|
model: hintBar.hints
|
|
|
|
delegate: Row {
|
|
spacing: Theme.geometry.spacing / 2
|
|
|
|
Text {
|
|
text: modelData.key
|
|
color: Theme.colors.textMuted
|
|
font.family: Theme.font.family
|
|
font.bold: true
|
|
font.pixelSize: Theme.type.caption
|
|
}
|
|
|
|
Text {
|
|
text: modelData.label
|
|
color: Theme.colors.textMuted
|
|
font.family: Theme.font.family
|
|
font.pixelSize: Theme.type.caption
|
|
}
|
|
}
|
|
}
|
|
}
|