mirror of
https://invent.kde.org/system/dolphin
synced 2024-10-05 16:19:10 +00:00
Improve icons and text for some actions
Summary: Split out from D23757 Reviewers: #dolphin, #vdg, elvisangelaccio Reviewed By: #dolphin, elvisangelaccio Subscribers: elvisangelaccio, kfm-devel Tags: #dolphin Differential Revision: https://phabricator.kde.org/D23945
This commit is contained in:
parent
67909d867f
commit
0078d8e6fe
|
@ -1696,8 +1696,9 @@ void DolphinMainWindow::setupDockWidgets()
|
||||||
"</interface> to display it again.</para>") + panelWhatsThis);
|
"</interface> to display it again.</para>") + panelWhatsThis);
|
||||||
|
|
||||||
// Add actions into the "Panels" menu
|
// Add actions into the "Panels" menu
|
||||||
KActionMenu* panelsMenu = new KActionMenu(i18nc("@action:inmenu View", "Panels"), this);
|
KActionMenu* panelsMenu = new KActionMenu(i18nc("@action:inmenu View", "Show Panels"), this);
|
||||||
actionCollection()->addAction(QStringLiteral("panels"), panelsMenu);
|
actionCollection()->addAction(QStringLiteral("panels"), panelsMenu);
|
||||||
|
panelsMenu->setIcon(QIcon::fromTheme(QStringLiteral("view-sidetree")));
|
||||||
panelsMenu->setDelayed(false);
|
panelsMenu->setDelayed(false);
|
||||||
const KActionCollection* ac = actionCollection();
|
const KActionCollection* ac = actionCollection();
|
||||||
panelsMenu->addAction(ac->action(QStringLiteral("show_places_panel")));
|
panelsMenu->addAction(ac->action(QStringLiteral("show_places_panel")));
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
|
<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
|
||||||
<kpartgui name="dolphin" version="26">
|
<kpartgui name="dolphin" version="27">
|
||||||
<MenuBar>
|
<MenuBar>
|
||||||
<Menu name="file">
|
<Menu name="file">
|
||||||
<Action name="new_menu" />
|
<Action name="new_menu" />
|
||||||
|
@ -40,7 +40,7 @@
|
||||||
<Action name="stop" />
|
<Action name="stop" />
|
||||||
<Separator/>
|
<Separator/>
|
||||||
<Action name="panels" />
|
<Action name="panels" />
|
||||||
<Menu name="location_bar">
|
<Menu name="location_bar" icon="edit-select-text">
|
||||||
<text context="@title:menu">Location Bar</text>
|
<text context="@title:menu">Location Bar</text>
|
||||||
<Action name="editable_location" />
|
<Action name="editable_location" />
|
||||||
<Action name="replace_location" />
|
<Action name="replace_location" />
|
||||||
|
|
|
@ -202,7 +202,7 @@ void DolphinViewActionHandler::createActions()
|
||||||
zoomOutAction->setWhatsThis(i18nc("@info:whatsthis zoom out", "This reduces the icon size."));
|
zoomOutAction->setWhatsThis(i18nc("@info:whatsthis zoom out", "This reduces the icon size."));
|
||||||
|
|
||||||
KToggleAction* showPreview = m_actionCollection->add<KToggleAction>(QStringLiteral("show_preview"));
|
KToggleAction* showPreview = m_actionCollection->add<KToggleAction>(QStringLiteral("show_preview"));
|
||||||
showPreview->setText(i18nc("@action:intoolbar", "Preview"));
|
showPreview->setText(i18nc("@action:intoolbar", "Show Previews"));
|
||||||
showPreview->setToolTip(i18nc("@info", "Show preview of files and folders"));
|
showPreview->setToolTip(i18nc("@info", "Show preview of files and folders"));
|
||||||
showPreview->setWhatsThis(xi18nc("@info:whatsthis", "When this is "
|
showPreview->setWhatsThis(xi18nc("@info:whatsthis", "When this is "
|
||||||
"enabled, the icons are based on the actual file or folder "
|
"enabled, the icons are based on the actual file or folder "
|
||||||
|
@ -253,7 +253,8 @@ void DolphinViewActionHandler::createActions()
|
||||||
QActionGroup* visibleRolesGroup = createFileItemRolesActionGroup(QStringLiteral("show_"));
|
QActionGroup* visibleRolesGroup = createFileItemRolesActionGroup(QStringLiteral("show_"));
|
||||||
|
|
||||||
KActionMenu* visibleRolesMenu = m_actionCollection->add<KActionMenu>(QStringLiteral("additional_info"));
|
KActionMenu* visibleRolesMenu = m_actionCollection->add<KActionMenu>(QStringLiteral("additional_info"));
|
||||||
visibleRolesMenu->setText(i18nc("@action:inmenu View", "Additional Information"));
|
visibleRolesMenu->setText(i18nc("@action:inmenu View", "Show Additional Information"));
|
||||||
|
visibleRolesMenu->setIcon(QIcon::fromTheme(QStringLiteral("documentinfo")));
|
||||||
visibleRolesMenu->setDelayed(false);
|
visibleRolesMenu->setDelayed(false);
|
||||||
|
|
||||||
foreach (QAction* action, visibleRolesGroup->actions()) {
|
foreach (QAction* action, visibleRolesGroup->actions()) {
|
||||||
|
@ -267,7 +268,7 @@ void DolphinViewActionHandler::createActions()
|
||||||
connect(showInGroups, &KToggleAction::triggered, this, &DolphinViewActionHandler::toggleGroupedSorting);
|
connect(showInGroups, &KToggleAction::triggered, this, &DolphinViewActionHandler::toggleGroupedSorting);
|
||||||
|
|
||||||
KToggleAction* showHiddenFiles = m_actionCollection->add<KToggleAction>(QStringLiteral("show_hidden_files"));
|
KToggleAction* showHiddenFiles = m_actionCollection->add<KToggleAction>(QStringLiteral("show_hidden_files"));
|
||||||
showHiddenFiles->setText(i18nc("@action:inmenu View", "Hidden Files"));
|
showHiddenFiles->setText(i18nc("@action:inmenu View", "Show Hidden Files"));
|
||||||
showHiddenFiles->setToolTip(i18nc("@info", "Visibility of hidden files and folders"));
|
showHiddenFiles->setToolTip(i18nc("@info", "Visibility of hidden files and folders"));
|
||||||
showHiddenFiles->setWhatsThis(xi18nc("@info:whatsthis", "<para>When "
|
showHiddenFiles->setWhatsThis(xi18nc("@info:whatsthis", "<para>When "
|
||||||
"this is enabled <emphasis>hidden</emphasis> files and folders "
|
"this is enabled <emphasis>hidden</emphasis> files and folders "
|
||||||
|
@ -280,6 +281,7 @@ void DolphinViewActionHandler::createActions()
|
||||||
|
|
||||||
QAction* adjustViewProps = m_actionCollection->addAction(QStringLiteral("view_properties"));
|
QAction* adjustViewProps = m_actionCollection->addAction(QStringLiteral("view_properties"));
|
||||||
adjustViewProps->setText(i18nc("@action:inmenu View", "Adjust View Properties..."));
|
adjustViewProps->setText(i18nc("@action:inmenu View", "Adjust View Properties..."));
|
||||||
|
adjustViewProps->setIcon(QIcon::fromTheme(QStringLiteral("view-choose")));
|
||||||
adjustViewProps->setWhatsThis(i18nc("@info:whatsthis", "This opens a window "
|
adjustViewProps->setWhatsThis(i18nc("@info:whatsthis", "This opens a window "
|
||||||
"in which all folder view properties can be adjusted."));
|
"in which all folder view properties can be adjusted."));
|
||||||
connect(adjustViewProps, &QAction::triggered, this, &DolphinViewActionHandler::slotAdjustViewProperties);
|
connect(adjustViewProps, &QAction::triggered, this, &DolphinViewActionHandler::slotAdjustViewProperties);
|
||||||
|
|
Loading…
Reference in a new issue