TizenRefApp-9363 [GUI] Wrong color for recipients 70/151070/5
authorEvgen Servetnik <e.servetnik@samsung.com>
Tue, 19 Sep 2017 13:47:26 +0000 (16:47 +0300)
committerEvgen Servetnik <e.servetnik@samsung.com>
Tue, 19 Sep 2017 14:09:29 +0000 (17:09 +0300)
Change-Id: Ice2d6dd086e88954fef5301aeb64c191f6aef99b
Signed-off-by: Evgen Servetnik <e.servetnik@samsung.com>
src/Conversation/Recipients/View/src/ConvRecipientsPanelView.cpp

index 0063465a5a80dace4227db23b7d18e2402d4f702..833f0be5395b32f8aa66a65ac0321571cc21b376 100644 (file)
@@ -407,12 +407,17 @@ void ConvRecipientsPanelView::expandRecipients()
 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);
+               }
        }
 }