stickypad: make placeholder show tip with bulletpoints

This commit is contained in:
end-4
2025-11-14 10:44:08 +01:00
parent c8c4642c61
commit a5b941360c
@@ -55,10 +55,10 @@ OverlayBackground {
if (!stickypadInput)
return
if (immediate) {
copylistDebounce.stop()
copyListDebounce.stop()
updateCopylistEntries()
} else {
copylistDebounce.restart()
copyListDebounce.restart()
}
}
@@ -156,8 +156,12 @@ OverlayBackground {
StyledTextArea {
id: stickypadInput
anchors {
left: parent.left
right: parent.right
}
wrapMode: TextEdit.Wrap
placeholderText: Translation.tr("Write...")
placeholderText: Translation.tr("Write something here...\nUse '-' to create copyable bullet points, like this:\n\nSheep fricker\n- 4x Slab\n- 1x Boat\n- 4x Redstone Dust\n- 1x Sticky Piston\n- 1x End Rod\n- 4x Redstone Repeater\n- 1x Redstone Torch\n- 1x Sheep")
selectByMouse: true
persistentSelection: true
textFormat: TextEdit.PlainText
@@ -292,7 +296,7 @@ OverlayBackground {
}
Timer {
id: copylistDebounce
id: copyListDebounce
interval: 100
repeat: false
onTriggered: updateCopylistPositions()