Commit 786c0dd8 authored by Laurent Montel's avatar Laurent Montel 😁

Fix minimum size in warning message. Otherwise in hdpi we can have

icon which is too big for red rect.
Bug found by Filipe Azevedo
parent f20a966b
......@@ -38,6 +38,7 @@
#include <QPaintDevice>
#include <QPalette>
#include <QUrl>
#define USE_HTML_STYLE_COLOR 1
namespace MessageViewer {
namespace {
......@@ -750,6 +751,7 @@ QString CSSHelperBase::commonCssDefinitions() const
" padding: 10px ! important;\n"
" text-align: left ! important;\n"
" line-height: normal;\n"
" min-height: %6px;\n"
"}\n\n"
"hr {\n"
......@@ -762,7 +764,7 @@ QString CSSHelperBase::commonCssDefinitions() const
" position: absolute;\n"
" margin-left:-10px;\n"
"}\n\n").arg(extraCommonCss(headerFont), inlineMessageCss.join(QLatin1String(", ")))
.arg(mForegroundColor.red()).arg(mForegroundColor.green()).arg(mForegroundColor.blue());
.arg(mForegroundColor.red()).arg(mForegroundColor.green()).arg(mForegroundColor.blue()).arg(QString::number(48));
}
void CSSHelperBase::setBodyFont(const QFont &font)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment