...
 
Commits (2)
......@@ -69,16 +69,19 @@ static const QString NinjaPrefix = QStringLiteral("[ninja]");
static QIcon messageIcon(KateBuildView::ErrorCategory severity)
{
#define RETURN_CACHED_ICON(name) \
{ \
static QIcon icon(QIcon::fromTheme(QStringLiteral(name))); \
return icon; \
// clang-format off
#define RETURN_CACHED_ICON(name, fallbackname) \
{ \
static QIcon icon(QIcon::fromTheme(QStringLiteral(name), \
QIcon::fromTheme(QStringLiteral(fallbackname)))); \
return icon; \
}
// clang-format on
switch (severity) {
case KateBuildView::CategoryError:
RETURN_CACHED_ICON("dialog-error")
RETURN_CACHED_ICON("data-error", "dialog-error")
case KateBuildView::CategoryWarning:
RETURN_CACHED_ICON("dialog-warning")
RETURN_CACHED_ICON("data-warning", "dialog-warning")
default:
break;
}
......
......@@ -125,20 +125,21 @@ static constexpr KTextEditor::MarkInterface::MarkTypes markTypeDiagAll = KTextEd
static QIcon diagnosticsIcon(LSPDiagnosticSeverity severity)
{
// clang-format off
#define RETURN_CACHED_ICON(name) \
#define RETURN_CACHED_ICON(name, fallbackname) \
{ \
static QIcon icon(QIcon::fromTheme(QStringLiteral(name))); \
static QIcon icon(QIcon::fromTheme(QStringLiteral(name), \
QIcon::fromTheme(QStringLiteral(fallbackname)))); \
return icon; \
}
// clang-format on
switch (severity) {
case LSPDiagnosticSeverity::Error:
RETURN_CACHED_ICON("dialog-error")
RETURN_CACHED_ICON("data-error", "dialog-error")
case LSPDiagnosticSeverity::Warning:
RETURN_CACHED_ICON("dialog-warning")
RETURN_CACHED_ICON("data-warning", "dialog-warning")
case LSPDiagnosticSeverity::Information:
case LSPDiagnosticSeverity::Hint:
RETURN_CACHED_ICON("dialog-information")
RETURN_CACHED_ICON("data-information", "dialog-information")
default:
break;
}
......
......@@ -301,7 +301,7 @@
<li xml:lang="zh-TW">CR, CRLF, LF 等換行符號支援</li>
<li>Encoding support (utf-8, utf-16, ascii etc.)</li>
<li xml:lang="ar">دعم التّرميز (utf-8، وutf-16 وآسكي وغيرها)</li>
<li xml:lang="ast">Sofitu pa codificaciones (utf-8, utf-16, ascii... etc)</li>
<li xml:lang="ast">Sofitu pa codificaciones (utf-8, utf-16, ascii etc)</li>
<li xml:lang="ca">Admet codificacions (UTF-8, UTF-16, ASCII, etc.)</li>
<li xml:lang="ca-valencia">Admet codificacions (UTF-8, UTF-16, ASCII, etc.)</li>
<li xml:lang="cs">Podpora kódování (UTF-8, UTF-16, ASCII a další)</li>
......