diff --git a/ui/squawk.ui b/ui/squawk.ui
index f6cb300..a4d0258 100644
--- a/ui/squawk.ui
+++ b/ui/squawk.ui
@@ -184,8 +184,8 @@
-
- ..
+
+ :/images/fallback/dark/big/group.svg:/images/fallback/dark/big/group.svg
Accounts
@@ -193,8 +193,8 @@
-
- ..
+
+ :/images/fallback/dark/big/edit-none.svg:/images/fallback/dark/big/edit-none.svg
Quit
@@ -205,8 +205,8 @@
false
-
- ..
+
+ :/images/fallback/dark/big/add.svg:/images/fallback/dark/big/add.svg
Add contact
@@ -217,14 +217,16 @@
false
-
- ..
+
+ :/images/fallback/dark/big/group-new.svg:/images/fallback/dark/big/group-new.svg
Add conference
-
+
+
+
diff --git a/ui/utils/badge.cpp b/ui/utils/badge.cpp
index ef15bd2..7575afc 100644
--- a/ui/utils/badge.cpp
+++ b/ui/utils/badge.cpp
@@ -32,7 +32,12 @@ Badge::Badge(const QString& p_id, const QString& p_text, const QIcon& icon, QWid
setFrameShadow(QFrame::Raised);
image->setPixmap(icon.pixmap(25, 25));
- closeButton->setIcon(QIcon::fromTheme("tab-close"));
+ QIcon tabCloseIcon = QIcon::fromTheme("tab-close");
+ if (tabCloseIcon.isNull()) {
+ tabCloseIcon.addFile(QString::fromUtf8(":/images/fallback/dark/big/edit-none.svg"), QSize(), QIcon::Normal, QIcon::Off);
+ }
+ closeButton->setIcon(tabCloseIcon);
+
closeButton->setMaximumHeight(25);
closeButton->setMaximumWidth(25);
diff --git a/ui/widgets/conversation.cpp b/ui/widgets/conversation.cpp
index fcf28c3..ea2f722 100644
--- a/ui/widgets/conversation.cpp
+++ b/ui/widgets/conversation.cpp
@@ -292,8 +292,12 @@ void Conversation::addAttachedFile(const QString& path)
QMimeDatabase db;
QMimeType type = db.mimeTypeForFile(path);
QFileInfo info(path);
-
- Badge* badge = new Badge(path, info.fileName(), QIcon::fromTheme(type.iconName()));
+
+ QIcon fileIcon = QIcon::fromTheme(type.iconName());
+ if (fileIcon.isNull()) {
+ fileIcon.addFile(QString::fromUtf8(":/images/fallback/dark/big/mail-attachment.svg"), QSize(), QIcon::Normal, QIcon::Off);
+ }
+ Badge* badge = new Badge(path, info.fileName(), fileIcon);
connect(badge, &Badge::close, this, &Conversation::onBadgeClose);
try {
diff --git a/ui/widgets/conversation.ui b/ui/widgets/conversation.ui
index bb38666..483375a 100644
--- a/ui/widgets/conversation.ui
+++ b/ui/widgets/conversation.ui
@@ -271,8 +271,8 @@
-
- ..
+
+ :/images/fallback/dark/big/unfavorite.svg:/images/fallback/dark/big/unfavorite.svg
true
@@ -298,8 +298,8 @@
-
- ..
+
+ :/images/fallback/dark/big/mail-attachment.svg:/images/fallback/dark/big/mail-attachment.svg
true
@@ -312,8 +312,8 @@
-
- ..
+
+ :/images/fallback/dark/big/clean.svg:/images/fallback/dark/big/clean.svg
true
@@ -332,8 +332,8 @@
-
- ..
+
+ :/images/fallback/dark/big/send.svg:/images/fallback/dark/big/send.svg
true
@@ -419,6 +419,8 @@ p, li { white-space: pre-wrap; }
-
+
+
+
diff --git a/ui/widgets/messageline/preview.cpp b/ui/widgets/messageline/preview.cpp
index a64c036..e54fce6 100644
--- a/ui/widgets/messageline/preview.cpp
+++ b/ui/widgets/messageline/preview.cpp
@@ -164,6 +164,9 @@ void Preview::applyNewSize()
break;
default: {
QIcon icon = QIcon::fromTheme(info.mime.iconName());
+ if (icon.isNull()) {
+ icon.addFile(QString::fromUtf8(":/images/fallback/dark/big/mail-attachment.svg"), QSize(), QIcon::Normal, QIcon::Off);
+ }
widget->setPixmap(icon.pixmap(actualSize));
widget->resize(actualSize);
}
@@ -264,6 +267,10 @@ void Preview::initializeElements()
break;
default: {
QIcon icon = QIcon::fromTheme(info.mime.iconName());
+ if (icon.isNull()) {
+ icon.addFile(QString::fromUtf8(":/images/fallback/dark/big/mail-attachment.svg"), QSize(), QIcon::Normal, QIcon::Off);
+ }
+
widget = new QLabel(parent);
widget->setPixmap(icon.pixmap(actualSize));
widget->show();
diff --git a/ui/widgets/vcard/vcard.ui b/ui/widgets/vcard/vcard.ui
index 26db8f9..b71d262 100644
--- a/ui/widgets/vcard/vcard.ui
+++ b/ui/widgets/vcard/vcard.ui
@@ -482,8 +482,8 @@
-
- ..
+
+ :/images/fallback/dark/big/user.svg:/images/fallback/dark/big/user.svg
@@ -852,8 +852,8 @@
-
- ..
+
+ :/images/fallback/dark/big/edit-rename.svg:/images/fallback/dark/big/edit-rename.svg
Set avatar
@@ -861,8 +861,8 @@
-
- ..
+
+ :/images/fallback/dark/big/clean.svg:/images/fallback/dark/big/clean.svg
Clear avatar
@@ -886,7 +886,7 @@
description
-
+