]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Make "Empty trash" icons red
authorNate Graham <nate@kde.org>
Wed, 29 Jan 2025 18:57:09 +0000 (11:57 -0700)
committerNate Graham <nate@kde.org>
Wed, 29 Jan 2025 21:08:11 +0000 (14:08 -0700)
This is a destructive action, and the HIG specifies that icons for
destructive actions should be colored red.

The current icons are black, inconsistent, and semantically incorrect.

edit-delete is red in the Breeze icon theme, and also more semantically
correct since the items in the trash will be deleted. Let's use this
icon instead.

src/dolphincontextmenu.cpp
src/dolphinnavigatorswidgetaction.cpp

index 413ab96a023085b0566d82eeffc6facaac4ded3d..e2f7e326bf89eaec7c47d3528f66872b785ad1db 100644 (file)
@@ -121,7 +121,7 @@ void DolphinContextMenu::addTrashContextMenu()
 {
     Q_ASSERT(m_context & TrashContext);
 
-    QAction *emptyTrashAction = addAction(QIcon::fromTheme(QStringLiteral("trash-empty")), i18nc("@action:inmenu", "Empty Trash"), [this]() {
+    QAction *emptyTrashAction = addAction(QIcon::fromTheme(QStringLiteral("edit-delete")), i18nc("@action:inmenu", "Empty Trash"), [this]() {
         Trash::empty(m_mainWindow);
     });
     emptyTrashAction->setEnabled(!Trash::isEmpty());
index 36217ed095a8df4966f23560cd3f40f8e7e2ad74..e1254e019dd01fca5ce8829bcc86ef5289f116c8 100644 (file)
@@ -225,7 +225,7 @@ QPushButton *DolphinNavigatorsWidgetAction::emptyTrashButton(DolphinNavigatorsWi
 
 QPushButton *DolphinNavigatorsWidgetAction::newEmptyTrashButton(const DolphinUrlNavigator *urlNavigator, QWidget *parent) const
 {
-    auto emptyTrashButton = new QPushButton(QIcon::fromTheme(QStringLiteral("user-trash")), i18nc("@action:button", "Empty Trash"), parent);
+    auto emptyTrashButton = new QPushButton(QIcon::fromTheme(QStringLiteral("edit-delete")), i18nc("@action:button", "Empty Trash"), parent);
     emptyTrashButton->setToolTip(i18n("Empties Trash to create free space"));
 
     emptyTrashButton->setFlat(true);