Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2020-10-26 18:49:10 +0300
committerHannah von Reth <vonreth@kde.org>2020-10-28 11:38:07 +0300
commit8fb364a913009acfcae5d3da02f95e2e5a3ef40b (patch)
tree256e988e38bb40ff32587b5cef05dd1d814a8d49 /src/gui/folderstatusdelegate.cpp
parent2e8f660e2ade5b19a62286dddcc928cc707c08ed (diff)
Reintroduce a dark and a light theme
Diffstat (limited to 'src/gui/folderstatusdelegate.cpp')
-rw-r--r--src/gui/folderstatusdelegate.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/folderstatusdelegate.cpp b/src/gui/folderstatusdelegate.cpp
index 44635860a..2b652adf1 100644
--- a/src/gui/folderstatusdelegate.cpp
+++ b/src/gui/folderstatusdelegate.cpp
@@ -209,7 +209,7 @@ void FolderStatusDelegate::paint(QPainter *painter, const QStyleOptionViewItem &
warnRect.setWidth(16);
warnRect.setHeight(16);
- QIcon warnIcon(":/client/resources/warning.svg");
+ const QIcon warnIcon = Utility::getCoreIcon(QStringLiteral("warning"));
QPixmap pm = warnIcon.pixmap(16, 16, syncEnabled ? QIcon::Normal : QIcon::Disabled);
warnRect = QStyle::visualRect(option.direction, option.rect, warnRect);
painter->drawPixmap(QPoint(warnRect.left(), warnRect.top()), pm);
@@ -345,7 +345,7 @@ void FolderStatusDelegate::paint(QPainter *painter, const QStyleOptionViewItem &
btnOpt.arrowType = Qt::NoArrow;
btnOpt.subControls = QStyle::SC_ToolButton;
btnOpt.rect = optionsButtonVisualRect;
- btnOpt.icon = QIcon(QStringLiteral(":/client/resources/more.svg"));
+ btnOpt.icon = Utility::getCoreIcon(QStringLiteral("more"));
int e = QApplication::style()->pixelMetric(QStyle::PM_ButtonIconSize);
btnOpt.iconSize = QSize(e,e);
QApplication::style()->drawComplexControl(QStyle::CC_ToolButton, &btnOpt, painter);