Subject: [trojita] src/Gui: GUI: Tweak display of parts
that failed to load in WebKit



Git commit d40814e520e7f57cec738c58d14d3daa05951ed1 by Jan Kundrát.
Committed on 02/01/2017 at 22:07.
Pushed by gerrit into branch 'master'.

GUI: Tweak display of parts that failed to load in WebKit

- HTML markup shouldn't really be translated
- tweak alignment, centering, margins

Change-Id: I93bfd63527c8b75d9881fa8c6bb68e6cfccf10b8

M +3 -1 src/Gui/EmbeddedWebView.cpp

https://commits.kde.org/trojita/d40814e520e7f57cec738c58d14d3daa05951ed1

diff --git a/src/Gui/EmbeddedWebView.cpp b/src/Gui/EmbeddedWebView.cpp
index 7d461817..97ccdbd0 100644
--- a/src/Gui/EmbeddedWebView.cpp
+++ b/src/Gui/EmbeddedWebView.cpp
@@ -339,7 +339,9 @@ bool ErrorCheckingPage::extension(Extension extension,
const ExtensionOption *op
}
}
if (!emblem.isNull()) {
- res->content = tr("<img src=\"%2\"/><span style=\"font-family:
sans-serif; color: gray\">%1</span>")
+ res->content = QStringLiteral(
+ "<img src=\"%2\" style=\"vertical-align:
middle\"/>"
+ "<span style=\"font-family: sans-serif; color:
gray; margin-left: 0.5em\">%1</span>")
.arg(input->errorString,
Util::resizedImageAsDataUrl(QStringLiteral(":/icons/%1.svg").arg(emblem),
32)).toUtf8();
return true;
}



Programming list archiving by: Enterprise Git Hosting