blueprint-freespeech / ricochet-refresh

Anonymous peer-to-peer instant messaging
https://www.ricochetrefresh.net
Other
184 stars 27 forks source link

ui: add placeholder text to Message field in ContactRequest form #155

Closed wfr closed 2 years ago

wfr commented 2 years ago

Some users, in my experience, tend to leave the Message field empty when they create new contact requests. This is a problem when one distributes a Ricochet ID to multiple people at the same time, who then send contact requests without any message. It becomes difficult to distinguish the individual incoming requests.

We can add a placeholder text to the Message field to motivate users to add a message, e.g.: Hi, I'm <yourname>.

wfr commented 2 years ago

contactrequest-message-placeholder

wfr commented 2 years ago

Note that TextArea only supports placeholderText starting with QtQuick.Controls 2. When I upgraded the import in ContactRequestFields.qml, the Message TextArea background turned gray. I'm not sure why. The PR contains a workaround but maybe there's a more elegant explanation and/or solution.

morganava commented 2 years ago

cherry-picked as 65efe5bcea7c1222d0eef4ce447d3bebfee37779