Debugger: Provide a mode-bar sized icon for the "Debugger.Stop" action

That big Icon was always there, but unused. add it to the
"Debugger.Stop" (in addition to the toolbar sized one), so that it looks
good when it appears in the mode bar.

For the "Classic" variant, I needed to add a @2x variant of the non-flat
icon.

Change-Id: Iea7200c7821b3780ff11a17b3ec74c44e06ba8d1
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Alessandro Portale
2019-04-03 14:31:43 +02:00
parent aa27712f61
commit 4ff5157a24
7 changed files with 9 additions and 2 deletions

View File

@@ -14,6 +14,8 @@
<file>images/debugger_interrupt@2x.png</file> <file>images/debugger_interrupt@2x.png</file>
<file>images/debugger_interrupt_mask.png</file> <file>images/debugger_interrupt_mask.png</file>
<file>images/debugger_interrupt_mask@2x.png</file> <file>images/debugger_interrupt_mask@2x.png</file>
<file>images/debugger_stop.png</file>
<file>images/debugger_stop@2x.png</file>
<file>images/debugger_stop_mask.png</file> <file>images/debugger_stop_mask.png</file>
<file>images/debugger_stop_mask@2x.png</file> <file>images/debugger_stop_mask@2x.png</file>
<file>images/debugger_reversemode.png</file> <file>images/debugger_reversemode.png</file>

View File

@@ -66,8 +66,10 @@ const Icon INTERRUPT(
const Icon INTERRUPT_FLAT({ const Icon INTERRUPT_FLAT({
{":/debugger/images/debugger_interrupt_mask.png", Theme::IconsInterruptToolBarColor}, {":/debugger/images/debugger_interrupt_mask.png", Theme::IconsInterruptToolBarColor},
{":/projectexplorer/images/debugger_beetle_mask.png", Theme::IconsDebugColor}}); {":/projectexplorer/images/debugger_beetle_mask.png", Theme::IconsDebugColor}});
const Icon STOP(
":/debugger/images/debugger_stop.png");
const Icon STOP_FLAT({ const Icon STOP_FLAT({
{":/debugger/images/debugger_stop_mask.png", Theme::IconsStopColor}, {":/debugger/images/debugger_stop_mask.png", Theme::IconsStopToolBarColor},
{":/projectexplorer/images/debugger_beetle_mask.png", Theme::IconsDebugColor}}); {":/projectexplorer/images/debugger_beetle_mask.png", Theme::IconsDebugColor}});
const Icon DEBUG_INTERRUPT_SMALL({ const Icon DEBUG_INTERRUPT_SMALL({
{":/utils/images/interrupt_small.png", Theme::IconsInterruptColor}, {":/utils/images/interrupt_small.png", Theme::IconsInterruptColor},

View File

@@ -50,6 +50,7 @@ extern const Utils::Icon DEBUG_CONTINUE_SMALL;
extern const Utils::Icon DEBUG_CONTINUE_SMALL_TOOLBAR; extern const Utils::Icon DEBUG_CONTINUE_SMALL_TOOLBAR;
extern const Utils::Icon INTERRUPT; extern const Utils::Icon INTERRUPT;
extern const Utils::Icon INTERRUPT_FLAT; extern const Utils::Icon INTERRUPT_FLAT;
extern const Utils::Icon STOP;
extern const Utils::Icon STOP_FLAT; extern const Utils::Icon STOP_FLAT;
extern const Utils::Icon DEBUG_INTERRUPT_SMALL; extern const Utils::Icon DEBUG_INTERRUPT_SMALL;
extern const Utils::Icon DEBUG_INTERRUPT_SMALL_TOOLBAR; extern const Utils::Icon DEBUG_INTERRUPT_SMALL_TOOLBAR;

View File

@@ -1206,7 +1206,9 @@ bool DebuggerPluginPrivate::initialize(const QStringList &arguments,
touchBar->addAction(cmd); touchBar->addAction(cmd);
debugMenu->addAction(cmd, CC::G_DEFAULT_ONE); debugMenu->addAction(cmd, CC::G_DEFAULT_ONE);
act = new QAction(Icons::DEBUG_EXIT_SMALL.icon(), tr("Stop Debugger"), this); const QIcon sidebarStopIcon = Icon::sideBarIcon(Icons::STOP, Icons::STOP_FLAT);
const QIcon stopIcon = Icon::combinedIcon({Icons::DEBUG_EXIT_SMALL.icon(), sidebarStopIcon});
act = new QAction(stopIcon, tr("Stop Debugger"), this);
act->setEnabled(false); act->setEnabled(false);
cmd = ActionManager::registerAction(act, Constants::STOP); cmd = ActionManager::registerAction(act, Constants::STOP);
cmd->setTouchBarIcon(Icons::MACOS_TOUCHBAR_DEBUG_EXIT.icon()); cmd->setTouchBarIcon(Icons::MACOS_TOUCHBAR_DEBUG_EXIT.icon());

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB