mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 09:50:12 +00:00
Change terminal panel icon to dialog-scripts
Summary: The old icon was a color icon, which does not match the style of other toolbar/menu buttons Test Plan: {F7321334, size=full}{F7321319} Reviewers: #dolphin, #vdg, ngraham Reviewed By: #dolphin, #vdg, ngraham Subscribers: ngraham, kfm-devel Tags: #dolphin Differential Revision: https://phabricator.kde.org/D23740
This commit is contained in:
parent
ac14383e95
commit
0c66610260
|
@ -527,7 +527,7 @@ void DolphinMainWindow::closeEvent(QCloseEvent* event)
|
|||
if (!m_terminalPanel->isVisible()) {
|
||||
KGuiItem::assign(
|
||||
buttons->button(QDialogButtonBox::No),
|
||||
KGuiItem(i18n("Show &Terminal Panel"), QIcon::fromTheme(QStringLiteral("utilities-terminal"))));
|
||||
KGuiItem(i18n("Show &Terminal Panel"), QIcon::fromTheme(QStringLiteral("dialog-scripts"))));
|
||||
}
|
||||
KGuiItem::assign(buttons->button(QDialogButtonBox::Cancel), KStandardGuiItem::cancel());
|
||||
|
||||
|
@ -1406,7 +1406,7 @@ void DolphinMainWindow::setupActions()
|
|||
openTerminal->setWhatsThis(xi18nc("@info:whatsthis",
|
||||
"<para>This opens a <emphasis>terminal</emphasis> application for the viewed location.</para>"
|
||||
"<para>To learn more about terminals use the help in the terminal application.</para>"));
|
||||
openTerminal->setIcon(QIcon::fromTheme(QStringLiteral("utilities-terminal")));
|
||||
openTerminal->setIcon(QIcon::fromTheme(QStringLiteral("dialog-scripts")));
|
||||
actionCollection()->setDefaultShortcut(openTerminal, Qt::SHIFT + Qt::Key_F4);
|
||||
connect(openTerminal, &QAction::triggered, this, &DolphinMainWindow::openTerminal);
|
||||
}
|
||||
|
@ -1593,7 +1593,7 @@ void DolphinMainWindow::setupDockWidgets()
|
|||
this, &DolphinMainWindow::slotTerminalPanelVisibilityChanged);
|
||||
|
||||
QAction* terminalAction = terminalDock->toggleViewAction();
|
||||
createPanelAction(QIcon::fromTheme(QStringLiteral("utilities-terminal")), Qt::Key_F4, terminalAction, QStringLiteral("show_terminal_panel"));
|
||||
createPanelAction(QIcon::fromTheme(QStringLiteral("dialog-scripts")), Qt::Key_F4, terminalAction, QStringLiteral("show_terminal_panel"));
|
||||
|
||||
addDockWidget(Qt::BottomDockWidgetArea, terminalDock);
|
||||
connect(this, &DolphinMainWindow::urlChanged,
|
||||
|
|
|
@ -222,7 +222,7 @@ void DolphinPart::createActions()
|
|||
#ifndef Q_OS_WIN
|
||||
if (KAuthorized::authorize(QStringLiteral("shell_access"))) {
|
||||
m_openTerminalAction = actionCollection()->addAction(QStringLiteral("open_terminal"));
|
||||
m_openTerminalAction->setIcon(QIcon::fromTheme(QStringLiteral("utilities-terminal")));
|
||||
m_openTerminalAction->setIcon(QIcon::fromTheme(QStringLiteral("dialog-scripts")));
|
||||
m_openTerminalAction->setText(i18nc("@action:inmenu Tools", "Open &Terminal"));
|
||||
connect(m_openTerminalAction, &QAction::triggered, this, &DolphinPart::slotOpenTerminal);
|
||||
actionCollection()->setDefaultShortcut(m_openTerminalAction, Qt::Key_F4);
|
||||
|
|
Loading…
Reference in a new issue