Commit b0343224 authored by Nate Graham's avatar Nate Graham
Browse files

Use more appropriate/specific icon for "Show Editing Tools" button

And also set a fallback to the old one, since the new one was only added
to Breeze Icons very recently.
parent b6a4ec09
Pipeline #198437 passed with stage
in 3 minutes and 54 seconds
......@@ -476,7 +476,7 @@ struct MainWindow::Private {
mToggleOperationsSideBarAction = view->add<KToggleAction>("toggle_operations_sidebar");
mToggleOperationsSideBarAction->setText(i18nc("@action opens crop, rename, etc.", "Show Editing Tools"));
mToggleOperationsSideBarAction->setIcon(QIcon::fromTheme("document-edit"));
mToggleOperationsSideBarAction->setIcon(QIcon::fromTheme(QStringLiteral("edit-image"), QIcon::fromTheme(QStringLiteral("document-edit"))));
connect(mToggleOperationsSideBarAction, &KToggleAction::triggered, q, &MainWindow::toggleOperationsSideBar);
connect(mSideBar, &QTabWidget::currentChanged, mToggleOperationsSideBarAction, [=]() {
mToggleOperationsSideBarAction->setChecked(mSideBar->isVisible() && mSideBar->currentPage() == QLatin1String("operations"));
......
Supports Markdown
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