Commit 9fe51427 authored by Nate Graham's avatar Nate Graham 🔩

Use new toolbox icon for "Tools" dropdown menu button

Summary: Use the awesome new `tools` icon in the {nav Tools} dropdown menu button. Since the icon is only available in Frameworks 5.55, we use the old icon as a fallback since the minimum frameworks version is still 5.29.

Test Plan: {F6557432}

Reviewers: #spectacle, #vdg, ndavis

Reviewed By: #vdg, ndavis

Subscribers: broulik

Tags: #spectacle

Differential Revision: https://phabricator.kde.org/D18400
parent 0f62368e
......@@ -141,7 +141,8 @@ void KSMainWindow::init()
mDialogButtonBox->addButton(mConfigureButton, QDialogButtonBox::ResetRole);
KGuiItem::assign(mToolsButton, KGuiItem(i18n("Tools")));
mToolsButton->setIcon(QIcon::fromTheme(QStringLiteral("application-menu")));
mToolsButton->setIcon(QIcon::fromTheme(QStringLiteral("tools"),
QIcon::fromTheme(QStringLiteral("application-menu"))));
mDialogButtonBox->addButton(mToolsButton, QDialogButtonBox::ActionRole);
mToolsButton->setMenu(mToolsMenu);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment