From 4e54baa84006bfee4a1a465a30a36671aa679869 Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Mon, 30 Nov 2015 17:13:32 +0100 Subject: [PATCH] ProjectExplorer: Themed pause button Change-Id: I61a678ec3696a5d0a0555e342fb34604fc1a5cdd Reviewed-by: Alessandro Portale --- src/plugins/coreplugin/core.qrc | 1 - src/plugins/coreplugin/coreicons.h | 2 - src/plugins/coreplugin/images/pause.png | Bin 595 -> 0 bytes .../images/interrupt_small.png | Bin 0 -> 94 bytes .../images/interrupt_small@2x.png | Bin 0 -> 98 bytes .../projectexplorer/projectexplorer.qrc | 2 + .../projectexplorer/projectexplorericons.h | 2 + src/plugins/valgrind/callgrindtool.cpp | 3 +- src/tools/icons/qtcreatoricons.svg | 102 +++++++++++------- 9 files changed, 72 insertions(+), 40 deletions(-) delete mode 100644 src/plugins/coreplugin/images/pause.png create mode 100644 src/plugins/projectexplorer/images/interrupt_small.png create mode 100644 src/plugins/projectexplorer/images/interrupt_small@2x.png diff --git a/src/plugins/coreplugin/core.qrc b/src/plugins/coreplugin/core.qrc index a383424b1bd..88f39fe78a6 100644 --- a/src/plugins/coreplugin/core.qrc +++ b/src/plugins/coreplugin/core.qrc @@ -105,7 +105,6 @@ images/splitbutton_vertical@2x.png images/panel_manage_button.png images/panel_manage_button@2x.png - images/pause.png images/reload_gray.png images/reload_gray@2x.png images/error.png diff --git a/src/plugins/coreplugin/coreicons.h b/src/plugins/coreplugin/coreicons.h index 46233ece145..0e7922521d8 100644 --- a/src/plugins/coreplugin/coreicons.h +++ b/src/plugins/coreplugin/coreicons.h @@ -121,8 +121,6 @@ const Utils::Icon FILTER({ {QLatin1String(":/core/images/filtericon.png"), Utils::Theme::IconsBaseColor}}); const Utils::Icon LINK({ {QLatin1String(":/core/images/linkicon.png"), Utils::Theme::IconsBaseColor}}); -const Utils::Icon PAUSE({ - {QLatin1String(":/core/images/pause.png"), Utils::Theme::IconsBaseColor}}); const Utils::Icon WARNING({ {QLatin1String(":/core/images/warning.png"), Utils::Theme::IconsWarningColor}}); const Utils::Icon ERROR({ diff --git a/src/plugins/coreplugin/images/pause.png b/src/plugins/coreplugin/images/pause.png deleted file mode 100644 index 897394820c0d3c9889b3b3ed97fc53f8d49c573b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 595 zcmeAS@N?(olHy`uVBq!ia0y~yU=RRd4mJh`2Kmqb6B!s7BuiW)N`mv#O3D+9QW+dm z@{>{(JaZG%Q-e|yQz{EjrrIztFn;xPaSW-rwIn#+`*whcz4=~Glg#O}w&|S_@7{N% zo`-4jTkSV16@IX{?EPu*P4JI|-48XMk_XQ7e{s5WH7$^M-hJV1;<|Ol*UTcLg{RG} zp6#(@gV>&ePrIK#n{)r?VM`Sbriyb5-%O7A`{PNW-G}?i28Mxgi{~twvtY`3PTk|V zoTn9(9FEHz+NQnIH9TygcAvxaQwqQNHDm*J^L0f#&E{2EWv}S)Jo5_wo0MxCf+PPp z2kbbhyh;74QjcG3e`ispU&3Lu zp6BnkD*3-+nGvTpP4=1n{g*}e;kk47>UMlrzr;P??BKOc3e~c~xwpKXJT^Sbl2lm4 z;j)O?+FwQR&Kd8r*#0&5D>QjoR3x5pD6z(SZC))Y_~f6~;u|VViO2uVXJq3_k@M;I zS`l0#W?vm>DP~Wuzhc6x>9!ItBTT%(7O8t=|((^X$!8byZO~v ze#v%i=^Vbks8-9*=dYM-(c!*ze}CcQizjXJy>~~wefiTyqKnD%bx-fNr28tnS|tzb zp84dd^3n5+=7PA01u+r*lO?7ytcX$6Sus7{`&J>VTS1iYJ?3SzA81^!YYMYWIhP|Y zHlz5y(a~)iJ3c7hImS6f{-N2s1<9Iuzx^8+8J6x`bMYSM@eK?N3=E#GelF{r5}E*8 C>IS_4 diff --git a/src/plugins/projectexplorer/images/interrupt_small.png b/src/plugins/projectexplorer/images/interrupt_small.png new file mode 100644 index 0000000000000000000000000000000000000000..1be511a21f994bba8c6f0e59e5568f038b804176 GIT binary patch literal 94 zcmeAS@N?(olHy`uVBq!ia0y~yU=RRdMrH;E236Z!B?bltwg8_HR|W=#|Ns9ly*d9b w0|SGwr;B3{Qv)d>CO3f z85kJEJzX3_IHHq(@U!q_9AW>*{EgW$p^%&5=K}wY>SkY0GJrI@`njxgN@xNAjMy9Y literal 0 HcmV?d00001 diff --git a/src/plugins/projectexplorer/projectexplorer.qrc b/src/plugins/projectexplorer/projectexplorer.qrc index 6a730cb0d0e..bc3caae0db0 100644 --- a/src/plugins/projectexplorer/projectexplorer.qrc +++ b/src/plugins/projectexplorer/projectexplorer.qrc @@ -52,6 +52,8 @@ images/window.png images/stop_small.png images/stop_small@2x.png + images/interrupt_small.png + images/interrupt_small@2x.png images/disabledbuildstep.png images/disabledbuildstep@2x.png images/lightdisabledbuildstep.png diff --git a/src/plugins/projectexplorer/projectexplorericons.h b/src/plugins/projectexplorer/projectexplorericons.h index 883d5436a1f..4554844c7ed 100644 --- a/src/plugins/projectexplorer/projectexplorericons.h +++ b/src/plugins/projectexplorer/projectexplorericons.h @@ -73,6 +73,8 @@ const Utils::Icon MODE_PROJECT_FLAT({ {QLatin1String(":/projectexplorer/images/mode_project_mask.png"), Utils::Theme::IconsBaseColor}}); const Utils::Icon MODE_PROJECT_FLAT_ACTIVE({ {QLatin1String(":/projectexplorer/images/mode_project_mask.png"), Utils::Theme::IconsModeProjetcsActiveColor}}); +const Utils::Icon INTERRUPT_SMALL({ + {QLatin1String(":/projectexplorer/images/interrupt_small.png"), Utils::Theme::IconsInterruptColor}}); } // namespace Icons } // namespace ProjectExplorer diff --git a/src/plugins/valgrind/callgrindtool.cpp b/src/plugins/valgrind/callgrindtool.cpp index da050dc58aa..daeb465e5e9 100644 --- a/src/plugins/valgrind/callgrindtool.cpp +++ b/src/plugins/valgrind/callgrindtool.cpp @@ -69,6 +69,7 @@ #include #include +#include #include #include #include @@ -684,7 +685,7 @@ QWidget *CallgrindToolPrivate::createWidgets() // pause action action = new QAction(this); action->setCheckable(true); - action->setIcon(Core::Icons::PAUSE.icon()); + action->setIcon(ProjectExplorer::Icons::INTERRUPT_SMALL.icon()); //action->setText(tr("Ignore")); action->setToolTip(tr("Pause event logging. No events are counted which will speed up program execution during profiling.")); connect(action, &QAction::toggled, this, &CallgrindToolPrivate::pauseToggled); diff --git a/src/tools/icons/qtcreatoricons.svg b/src/tools/icons/qtcreatoricons.svg index f4bfbb5a06f..8fea88b91e1 100644 --- a/src/tools/icons/qtcreatoricons.svg +++ b/src/tools/icons/qtcreatoricons.svg @@ -2083,7 +2083,7 @@ width="100%" height="100%" /> + + + + + + transform="translate(-16,0)"> + transform="translate(-16,0)"> + transform="translate(-16,0)"> + id="src/plugins/coreplugin/images/continue_overlay_small" + transform="translate(16,0)"> + id="src/plugins/coreplugin/images/debugger_overlay_small" + transform="translate(16,0)"> + id="src/plugins/analyzerbase/images/analyzer_overlay_small" + transform="translate(16,0)"> + transform="translate(399,0)"> - + transform="translate(394,268)"> + transform="translate(32,0)"> + transform="translate(48,0)"> + transform="translate(64,0)"> + transform="translate(80,0)"> + style="display:inline" + transform="translate(16,0)"> + id="src/leafsort" + transform="translate(16,0)"> + transform="translate(32,0)"> + transform="translate(48,0)"> + id="src/collapse" + transform="translate(16,0)"> + id="src/runselected_overlay" + transform="translate(16,0)">