summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2016-08-24 09:20:37 (GMT)
committerTobias Markmann <tm@ayena.de>2016-08-24 09:37:46 (GMT)
commita2c73db9ab3e9fe96befcacea482b96b3c3ee410 (patch)
treea9f1aaec438d58743b429042c84a792e6c9399d0 /Swift/QtUI
parent14b211a927e8b2012eda4f187f8dcd9d119ef621 (diff)
downloadswift-a2c73db9ab3e9fe96befcacea482b96b3c3ee410.zip
swift-a2c73db9ab3e9fe96befcacea482b96b3c3ee410.tar.bz2
Improve readability of message receipt icons
This changes the icons for delivery success and delivery failure to vector graphics in SVG format. Added a slight white circle around the graphics for better readability on backgrounds with low contrast. Test-Information: Tested with Qt 5.4.2 and Qt 5.5.1 on OS X 10.11.6 on retina and non-retina systems. Noticeable better rendering due to SVG over PNG. Noticeable but not attracting attention white circle. Change-Id: I3c9be99854a300a4e40161a74964514aa47d292a
Diffstat (limited to 'Swift/QtUI')
-rw-r--r--Swift/QtUI/QtWebKitChatView.cpp4
-rw-r--r--Swift/QtUI/Swift.qrc4
2 files changed, 4 insertions, 4 deletions
diff --git a/Swift/QtUI/QtWebKitChatView.cpp b/Swift/QtUI/QtWebKitChatView.cpp
index f8ced92..c3320d8 100644
--- a/Swift/QtUI/QtWebKitChatView.cpp
+++ b/Swift/QtUI/QtWebKitChatView.cpp
@@ -954,13 +954,13 @@ void QtWebKitChatView::setMessageReceiptState(const std::string& id, ChatWindow:
QString xml;
switch (state) {
case ChatWindow::ReceiptReceived:
- xml = "<img src='qrc:/icons/delivery-successful.png' title='" + tr("The receipt for this message has been received.") + "'/>";
+ xml = "<img src='qrc:/icons/delivery-success.svg' title='" + tr("The receipt for this message has been received.") + "'/>";
break;
case ChatWindow::ReceiptRequested:
xml = "<img src='qrc:/icons/warn.png' title='" + tr("The receipt for this message has not yet been received. The recipient(s) might not have received this message.") + "'/>";
break;
case ChatWindow::ReceiptFailed:
- xml = "<img src='qrc:/icons/delivery-failure.png' title='" + tr("Failed to transmit message to the receipient(s).") + "'/>";
+ xml = "<img src='qrc:/icons/delivery-failure.svg' title='" + tr("Failed to transmit message to the receipient(s).") + "'/>";
}
setReceiptXML(P2QSTRING(id), xml);
}
diff --git a/Swift/QtUI/Swift.qrc b/Swift/QtUI/Swift.qrc
index 4c8fd55..6865d8e 100644
--- a/Swift/QtUI/Swift.qrc
+++ b/Swift/QtUI/Swift.qrc
@@ -44,7 +44,7 @@
<file alias="icons/star-unchecked.png">../resources/icons/star-unchecked2.png</file>
<file alias="icons/zzz.png">../resources/icons/zzz.png</file>
<file alias="icons/stop.png">../resources/icons/stop.png</file>
- <file alias="icons/delivery-successful.png">../resources/icons/delivery-successful.png</file>
- <file alias="icons/delivery-failure.png">../resources/icons/delivery-failure.png</file>
+ <file alias="icons/delivery-success.svg">../resources/icons/delivery-success.svg</file>
+ <file alias="icons/delivery-failure.svg">../resources/icons/delivery-failure.svg</file>
</qresource>
</RCC>