From 195812c634f2b2114a43268d77b731b24d43c00f Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Tue, 2 Apr 2019 13:36:57 +0200 Subject: [PATCH] QmlDesigner: Use highlight blue for expression indicator Using optipng on all PNGs. Change-Id: Id43868b917b450b2b613ea309f105be282161c04 Task-numbner: QDS-540 Reviewed-by: Brook Cronin Reviewed-by: Alessandro Portale --- .../imports/HelperWidgets/images/expression.png | Bin 271 -> 165 bytes .../HelperWidgets/images/expression@2x.png | Bin 490 -> 311 bytes .../componentcore/qmldesignericonprovider.cpp | 3 ++- 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/images/expression.png b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/images/expression.png index 8e6d13d7d976be5a9d1df72ef25527b77c8f5d64..a34365ae6ec84ea73b256aa215bb2e1748f91385 100644 GIT binary patch delta 148 zcmeBYTFN*96Wq z+qiv0=ZkEV*&utoK78_uzBxwMG&lWGGTyb#<12HHPg1+YoBO=(AP0E5`njxgN@xNA D$3;3y literal 271 zcmeAS@N?(olHy`uVBq!ia0y~yVBiB`4rT@h290TVA2Tp8xCZ!yxH2#>+_$o#5ZSEd zp3cC)AXXCO7tFxM!Ra$~#;nA#Ay_7bLd}O=Bq~S4Sq)d9{mxPKp z{Y%kfIPzlBwH=a;G69Oo+Nl~Df`_oHy^p9qRG-W^Hl2I7mFBba^1pzUQ1qO%s8y1U-22xoi+aTpYoid8Rl~Qhj_=-c%RLPDpHA$azW<~+C`>$E{an^LB{Ts5 DaovS% literal 490 zcmeAS@N?(olHy`uVBq!ia0y~yV2}Y}4rT@h2G`5_%NQ6Kx&nMcTp1V`?ps+61~gU8 zESZ6ULANBxFPMRenT=OaNK9N(N={2#$H>gW#>v+&p`o$0qqBSBy7e12Z{2a=*ztRB zKYaQ6x0l7MmVtrck*AAeh{pNW$*+Z)6a-ogySH3g;&ItaTX@%r-}~d37QV~av7hhx z>_ooZ+)lgh>`3Vo@e4hs$0S;)=%N*Ri9?Rjqh(Fgr5H}81^Nz&49*CG*%ll)UfteA%KizzrK6S;VN1I<=(w%oJ z`Gn_`9bY!fmp+M94h{ZRyJPCPP*1I=yZE19vh+Fp=>Jx~EY2f2{u|8>-m=SnJbU8L zhY2Z>4W1^ZIiZX#iVYG@^(m&sUfmO~hIr5Qn94Ujs;=Fup8Z;FyMBs>%U2r%-6sqT O3=E#GelF{r5}E)H*39z& diff --git a/src/plugins/qmldesigner/components/componentcore/qmldesignericonprovider.cpp b/src/plugins/qmldesigner/components/componentcore/qmldesignericonprovider.cpp index ff01ccd97d3..a1ca4a42dc6 100644 --- a/src/plugins/qmldesigner/components/componentcore/qmldesignericonprovider.cpp +++ b/src/plugins/qmldesigner/components/componentcore/qmldesignericonprovider.cpp @@ -69,7 +69,8 @@ QPixmap QmlDesignerIconProvider::getPixmap(const QString &id) else if (id == "plus") result = Utils::Icons::PLUS_TOOLBAR.pixmap(); else if (id == "expression") - result = Icon(iconPath() + "expression.png").pixmap(); + result = Icon({ + { iconPath() + QLatin1String("expression.png"), Theme::QmlDesigner_HighlightColor}}).pixmap(); else if (id == "placeholder") result = Icon(iconPath() + "placeholder.png").pixmap(); else if (id == "submenu")