]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Use more appropriate icon for "Create New" action
authorNate Graham <nate@kde.org>
Sun, 16 May 2021 15:25:35 +0000 (09:25 -0600)
committerNate Graham <nate@kde.org>
Tue, 18 May 2021 14:45:45 +0000 (14:45 +0000)
Right now this action is using the "document-new" icon, which depicts
creating a new file. This is inaccurate, as the menu provides options for
creating more than just files: it has one option to create folders and
three for creating different types of links. In fact, depending on the
set of installed software, there may not be any options to create new
documents at all!

To fix this, the icon would need to be made either more specific or
more generic.

There is no such icon that depicts being able to create a folder, a
document, or a link; such a thing is too specific to be able to
represent with a small icon. So our only real option is to use a more
generic icon.

This commit does that.

src/dolphincontextmenu.cpp
src/dolphinmainwindow.cpp

index 4b287981c9f286ddfdabf23456838dded649a4f0..e2a41e907bf27a53526cdb41c6bc10d516c568f7 100644 (file)
@@ -211,7 +211,7 @@ void DolphinContextMenu::addDirectoryItemContextMenu(KFileItemActions &fileItemA
 
     QMenu* menu = newFileMenu->menu();
     menu->setTitle(i18nc("@title:menu Create new folder, file, link, etc.", "Create New"));
-    menu->setIcon(QIcon::fromTheme(QStringLiteral("document-new")));
+    menu->setIcon(QIcon::fromTheme(QStringLiteral("list-add")));
     addMenu(menu);
 
     addSeparator();
index c2c4ae703fb69dad2a90d1ac54355009a2d5fc74..428e16547fa65714e3ea08cab7d3a08a6ca67609 100644 (file)
@@ -1367,7 +1367,7 @@ void DolphinMainWindow::setupActions()
     m_newFileMenu = new DolphinNewFileMenu(actionCollection(), this);
     QMenu* menu = m_newFileMenu->menu();
     menu->setTitle(i18nc("@title:menu Create new folder, file, link, etc.", "Create New"));
-    menu->setIcon(QIcon::fromTheme(QStringLiteral("document-new")));
+    menu->setIcon(QIcon::fromTheme(QStringLiteral("list-add")));
     m_newFileMenu->setDelayed(false);
     connect(menu, &QMenu::aboutToShow,
             this, &DolphinMainWindow::updateNewMenu);