From 22d04f7fa2192674560a442432d7db57d8fcc1d6 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Fri, 13 Sep 2024 13:56:11 +0200 Subject: [PATCH] PE: Add toolbar variant for an icon Enables to use it on toolbars. Improves appearance on the Axivion side especially for dark themes. Change-Id: Ifc5bc2319a00038061766079f792b3476d1f3a57 Reviewed-by: Alessandro Portale --- src/plugins/axivion/axivionperspective.cpp | 2 +- src/plugins/projectexplorer/projectexplorericons.cpp | 2 ++ src/plugins/projectexplorer/projectexplorericons.h | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/axivion/axivionperspective.cpp b/src/plugins/axivion/axivionperspective.cpp index 1c0572ae304..519d9863712 100644 --- a/src/plugins/axivion/axivionperspective.cpp +++ b/src/plugins/axivion/axivionperspective.cpp @@ -803,7 +803,7 @@ void AxivionPerspective::initPerspective() this, &AxivionPerspective::handleAnchorClicked); m_disableInlineIssues = new QAction(this); - m_disableInlineIssues->setIcon(ProjectExplorer::Icons::BUILDSTEP_DISABLE.icon()); + m_disableInlineIssues->setIcon(ProjectExplorer::Icons::BUILDSTEP_DISABLE_TOOLBAR.icon()); m_disableInlineIssues->setToolTip(Tr::tr("Disable inline issues")); m_disableInlineIssues->setCheckable(true); m_disableInlineIssues->setChecked(false); diff --git a/src/plugins/projectexplorer/projectexplorericons.cpp b/src/plugins/projectexplorer/projectexplorericons.cpp index 0d4440b4aee..d1cf1aa697b 100644 --- a/src/plugins/projectexplorer/projectexplorericons.cpp +++ b/src/plugins/projectexplorer/projectexplorericons.cpp @@ -69,6 +69,8 @@ const Icon BUILDSTEP_MOVEDOWN({ {":/projectexplorer/images/buildstepmovedown.png", Theme::PanelTextColorDark}}, Icon::Tint); const Icon BUILDSTEP_DISABLE({ {":/projectexplorer/images/buildstepdisable.png", Theme::PanelTextColorDark}}, Icon::Tint); +const Icon BUILDSTEP_DISABLE_TOOLBAR({ + {":/projectexplorer/images/buildstepdisable.png", Theme::IconsBaseColor}}); const Icon BUILDSTEP_REMOVE({ {":/projectexplorer/images/buildstepremove.png", Theme::PanelTextColorDark}}, Icon::Tint); diff --git a/src/plugins/projectexplorer/projectexplorericons.h b/src/plugins/projectexplorer/projectexplorericons.h index fbd46c8cc68..83a67b68f5e 100644 --- a/src/plugins/projectexplorer/projectexplorericons.h +++ b/src/plugins/projectexplorer/projectexplorericons.h @@ -38,6 +38,7 @@ PROJECTEXPLORER_EXPORT extern const Utils::Icon ANALYZER_START_SMALL_TOOLBAR; PROJECTEXPLORER_EXPORT extern const Utils::Icon BUILDSTEP_MOVEUP; PROJECTEXPLORER_EXPORT extern const Utils::Icon BUILDSTEP_MOVEDOWN; PROJECTEXPLORER_EXPORT extern const Utils::Icon BUILDSTEP_DISABLE; +PROJECTEXPLORER_EXPORT extern const Utils::Icon BUILDSTEP_DISABLE_TOOLBAR; PROJECTEXPLORER_EXPORT extern const Utils::Icon BUILDSTEP_REMOVE; PROJECTEXPLORER_EXPORT extern const Utils::Icon DESKTOP_DEVICE;