import QtQuick import QtQuick.Controls import "../../theme" import ".." // Sticky note; text is saved shortly after typing stops. Face { id: root ScrollView { anchors.fill: parent anchors.margins: 12 TextArea { id: editor text: root.options.text || "" placeholderText: "Write a note…" placeholderTextColor: Theme.textSecondary color: Theme.text selectionColor: Theme.accent selectedTextColor: Theme.accentText wrapMode: TextEdit.Wrap font.pixelSize: 13 background: null onTextChanged: if (activeFocus) save.restart() } } Timer { id: save interval: 700 onTriggered: WidgetState.setOption(root.widgetId, "text", editor.text) } }