From c465a25edc0c9e5b76e1757491023cdbb02ef0de Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Tue, 18 Oct 2016 19:21:04 +0200 Subject: [PATCH] ScxmlEditor: Themable, HighDPI-able export-canvas icon Change-Id: I966dee7c22903921d814141bc749b39dec7cf8d7 Reviewed-by: Alessandro Portale --- src/plugins/scxmleditor/common/common.qrc | 1 + .../common/images/icon-export-canvas.png | Bin 856 -> 164 bytes .../common/images/icon-export-canvas@2x.png | Bin 0 -> 256 bytes .../plugin_interface/actionhandler.cpp | 2 +- src/tools/icons/qtcreatoricons.svg | 54 ++++++++++++++++++ 5 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 src/plugins/scxmleditor/common/images/icon-export-canvas@2x.png diff --git a/src/plugins/scxmleditor/common/common.qrc b/src/plugins/scxmleditor/common/common.qrc index d0fdb605dd1..49ee31ce666 100644 --- a/src/plugins/scxmleditor/common/common.qrc +++ b/src/plugins/scxmleditor/common/common.qrc @@ -15,6 +15,7 @@ images/fullnamespace.png images/history.png images/icon-export-canvas.png + images/icon-export-canvas@2x.png images/icon-fit-screen.png images/icon-pan.png images/icon-zoom-in.png diff --git a/src/plugins/scxmleditor/common/images/icon-export-canvas.png b/src/plugins/scxmleditor/common/images/icon-export-canvas.png index 4c0eca55602892540165377a6a6f92f5c23e1182..d2d47205a8f2df6cb40ad5e12472455d0fe12d17 100644 GIT binary patch literal 164 zcmeAS@N?(olHy`uVBq!ia0y~yU=RRd4h9AW2CEqh_A)RqWP7?ehDc0J{?X4SVZc(C z5hA+Lkb&`a-HI;lm20ja)Y-V#Kv&Rc{p-dxhZ6)RG&t^5o51w4i7Voofx&@XhQ#Ux zPwIbHRqt?M_t+-KAvqyr;fjV8_y5a#GOVck|L1>(*1!Mmrp&Gkd>ej>G5j&y`|PP^ Q;XRP`p00i_>zopr0LSh;yZ`_I literal 856 zcmeAS@N?(olHy`uVBq!ia0y~yU{C>J4rT@hhHLjSRxvOz&JOSiab;j&U}k2Pl9Dnu zHkLvKT3T8V0X;oEGzIGF>QYits;a7(y42Oxjg5_EWo4zLq#(+qq@?8K<&BMvO-)VB z&CM+>Ev>AqY;0_7oLp^fZSCyr9GqPo9UUDbQ=P*T-2%hi-Q7JsJw3x>eFB2~60`l| z)BP*^f|IjDqT)i+^26ej!^6YFdzME=Mn;#lM7Pb2NzaWbtcjhpF0OHM%FL~)4SlII zx2CsE%b2u0Gcz-D&bF+o#_a6uoT;mF7VasmZ7G_xxVW~tWaW{vC40)}tgoE1uxkFM z>gwv6jc00WYisAOYiMX_oW8Je&7r2Irsf@2S~nbRo4u@U$EEh2S339J=-zOo`@o&v z-rl~wSNi8H?w_}O!r{AeXx4uHAI`@s=%H zwr<_J_0*M}J9qBhz5B?KBNs1TynOlcjT<-a-@pIh!GkAHo;-W@?A5DRZ{NQC`0?ZC z&!4}1`C{t2gr9+dL9ryrFBlX_Y@GaZD%$o=zJ7ionKM_cUbAt_;bSLn-+uDy?YEyB zX64UiU|{t2ba4!^=uJ*oV3%;^5LbX`=GCjojBYDdZMkKguz>U2s}%=Up4cvVZq1>k zD{gJvwV3&hLWt{`nnka)+{yx<>dMOInniweaFtEy2{@vrlq@)J#{8KQ8B4`32fPW% zY+2didP~PdoU7KBk z6jX0>C-FH=Y*@5tk%)D3SaQqCcoi0r66^!a}AzW?*+*xysu>Vo7A!;+ZNd zSDfJHT`t9&UoXJH+2J0nvQC4I`;3`1d$>S>zmZe0%8C=b!6A#@^Dtht`nsa)hiJsY zt|*?fxrzra@8Sp*oXn#0&gjdbq=g5Li-!s_i-!d6U1h|yVr$kzU)BJJV%Mk(5v& diff --git a/src/plugins/scxmleditor/common/images/icon-export-canvas@2x.png b/src/plugins/scxmleditor/common/images/icon-export-canvas@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..bdc82b7ade6b4af26d989f7af0c0a84b07751c5c GIT binary patch literal 256 zcmeAS@N?(olHy`uVBq!ia0y~yU{C;I4h9AWhA=@@4F(2=#Ar_~TfA}*PTySkn zJ@)Q@p$`wof{#3|2bC90D16VUsUm8nALwIoonwm0zg7V!L*_Sa@^g83>g)x$N+yOl z$nKocsVL`h)mdbZQxIcl!0xWuiSPbbv2`^4_t09vC6T6+_&`6UL91bhNGRj&{|pl} zCNZ&vur~eY7HkUWo*-Hvzb^g2>V*CBXChd77b!60=`)9j_%cSlNz`(<;m68)L$>qH zzyG`udph6Ld5M}ZFe(cFdmPjtByF+Rb03qB!z?DQPihP`Z+`?TD3*DFyyofZ=d#Wz Gp$Py*S6EO0 literal 0 HcmV?d00001 diff --git a/src/plugins/scxmleditor/plugin_interface/actionhandler.cpp b/src/plugins/scxmleditor/plugin_interface/actionhandler.cpp index 9024bc1f340..076be01876b 100644 --- a/src/plugins/scxmleditor/plugin_interface/actionhandler.cpp +++ b/src/plugins/scxmleditor/plugin_interface/actionhandler.cpp @@ -56,7 +56,7 @@ ActionHandler::ActionHandler(QObject *parent) { Utils::Icon({{":/utils/images/editcut.png", Utils::Theme::IconsBaseColor}}), AH::tr("Cut"), AH::tr("Cut (Ctrl + X)"), "Ctrl+X", false }, { Utils::Icon({{":/utils/images/editpaste.png", Utils::Theme::IconsBaseColor}}), AH::tr("Paste"), AH::tr("Paste (Ctrl + V)"), "Ctrl+V", false }, { Utils::Icons::SNAPSHOT_TOOLBAR, AH::tr("Screenshot"), AH::tr("Screenshot (Ctrl + Shift + C)"), "Ctrl+Shift+C", false }, - { Utils::Icon(":/scxmleditor/images/icon-export-canvas.png"), AH::tr("Export to Image"), AH::tr("Export to Image"), "Ctrl+Shift+E", false }, + { Utils::Icon({{":/scxmleditor/images/icon-export-canvas.png", Utils::Theme::IconsBaseColor}}), AH::tr("Export to Image"), AH::tr("Export to Image"), "Ctrl+Shift+E", false }, { Utils::Icon(":/scxmleditor/images/fullnamespace.png"), AH::tr("Toggle Full Namespace"), AH::tr("Toggle Full Namespace"), "Ctrl+Shift+N", true }, { Utils::Icon(":/scxmleditor/images/align_left.png"), AH::tr("Align Left"), AH::tr("Align Left (Ctrl+L,1)"), "Ctrl+L,1", false }, diff --git a/src/tools/icons/qtcreatoricons.svg b/src/tools/icons/qtcreatoricons.svg index 2dfab39db74..7002b7fd402 100644 --- a/src/tools/icons/qtcreatoricons.svg +++ b/src/tools/icons/qtcreatoricons.svg @@ -3680,6 +3680,60 @@ inkscape:connector-curvature="0" sodipodi:nodetypes="cc" /> + + + + + + + + + +