diff --git a/client.qrc b/client.qrc index f9bc23351..194e227a8 100644 --- a/client.qrc +++ b/client.qrc @@ -27,6 +27,9 @@ resources/link.svg resources/files.svg resources/folder-grey.png + resources/state-error.svg + resources/state-warning.svg + resources/folder.svg diff --git a/resources/state-error.svg b/resources/state-error.svg new file mode 100644 index 000000000..224ce8626 --- /dev/null +++ b/resources/state-error.svg @@ -0,0 +1 @@ + diff --git a/resources/state-warning.svg b/resources/state-warning.svg new file mode 100644 index 000000000..a738cdbc8 --- /dev/null +++ b/resources/state-warning.svg @@ -0,0 +1 @@ + diff --git a/src/gui/activitylistmodel.cpp b/src/gui/activitylistmodel.cpp index c29601a7e..5bf14524c 100644 --- a/src/gui/activitylistmodel.cpp +++ b/src/gui/activitylistmodel.cpp @@ -93,18 +93,18 @@ QVariant ActivityListModel::data(const QModelIndex &index, int role) const return cachedIcon; else return QIcon(QLatin1String(":/client/resources/bell.svg")); } else if(a._type == Activity::SyncResultType){ - return Theme::instance()->syncStateIcon(SyncResult::Error); + return QIcon(QLatin1String(":/client/resources/state-error.svg")); } else if(a._type == Activity::SyncFileItemType){ if(a._status == SyncFileItem::NormalError || a._status == SyncFileItem::FatalError || a._status == SyncFileItem::DetailError || a._status == SyncFileItem::BlacklistedError) { - return Theme::instance()->syncStateIcon(SyncResult::Error); + return QIcon(QLatin1String(":/client/resources/state-error.svg")); } else if(a._status == SyncFileItem::SoftError || a._status == SyncFileItem::FileIgnored || a._status == SyncFileItem::Conflict || a._status == SyncFileItem::Restoration){ - return Theme::instance()->syncStateIcon(SyncResult::Problem); + return QIcon(QLatin1String(":/client/resources/state-warning.svg")); } } else return QIcon(QLatin1String(":/client/resources/activity.png")); return QVariant();