forked from Shinonome/dots-hyprland
stickypad: make placeholder show tip with bulletpoints
This commit is contained in:
@@ -55,10 +55,10 @@ OverlayBackground {
|
|||||||
if (!stickypadInput)
|
if (!stickypadInput)
|
||||||
return
|
return
|
||||||
if (immediate) {
|
if (immediate) {
|
||||||
copylistDebounce.stop()
|
copyListDebounce.stop()
|
||||||
updateCopylistEntries()
|
updateCopylistEntries()
|
||||||
} else {
|
} else {
|
||||||
copylistDebounce.restart()
|
copyListDebounce.restart()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -156,8 +156,12 @@ OverlayBackground {
|
|||||||
|
|
||||||
StyledTextArea {
|
StyledTextArea {
|
||||||
id: stickypadInput
|
id: stickypadInput
|
||||||
|
anchors {
|
||||||
|
left: parent.left
|
||||||
|
right: parent.right
|
||||||
|
}
|
||||||
wrapMode: TextEdit.Wrap
|
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
|
selectByMouse: true
|
||||||
persistentSelection: true
|
persistentSelection: true
|
||||||
textFormat: TextEdit.PlainText
|
textFormat: TextEdit.PlainText
|
||||||
@@ -292,7 +296,7 @@ OverlayBackground {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Timer {
|
Timer {
|
||||||
id: copylistDebounce
|
id: copyListDebounce
|
||||||
interval: 100
|
interval: 100
|
||||||
repeat: false
|
repeat: false
|
||||||
onTriggered: updateCopylistPositions()
|
onTriggered: updateCopylistPositions()
|
||||||
|
|||||||
Reference in New Issue
Block a user