void ConvRecipientsPanelView::updateShortenedRecipients()
{
const auto &items = m_pMbe->getItems();
+ const std::string coutnterColor = "#3DB9CCFF";
std::string shortenedRecipients;
if (!items.empty()) {
shortenedRecipients = items[0]->getDispName();
- if (items.size() > 1)
- shortenedRecipients += " + " + std::to_string(items.size() - 1);
- setEntryText(shortenedRecipients);
+ if (items.size() > 1) {
+ shortenedRecipients = utf8ToMarkup(shortenedRecipients);
+ shortenedRecipients += "<color=" + coutnterColor + "> + " + std::to_string(items.size() - 1) + "</color>";
+ elm_object_text_set(m_pEntry, shortenedRecipients.c_str());
+ } else {
+ setEntryText(shortenedRecipients);
+ }
}
}