From 4916225ab7e58a15e3627f9b5249345b7bad03ed Mon Sep 17 00:00:00 2001 From: Michael Keppler Date: Sun, 21 Jan 2024 12:07:30 +0100 Subject: [PATCH] Replace quickfix GIFs by PNGs Also add a more specific one for the NeedBraces quickfix. --- net.sf.eclipsecs.ui/icons/add_correction.gif | Bin 318 -> 0 bytes net.sf.eclipsecs.ui/icons/add_correction.png | Bin 0 -> 262 bytes net.sf.eclipsecs.ui/icons/add_correction@2x.png | Bin 0 -> 461 bytes net.sf.eclipsecs.ui/icons/correction_cast.png | Bin 0 -> 404 bytes net.sf.eclipsecs.ui/icons/correction_cast@2x.png | Bin 0 -> 560 bytes net.sf.eclipsecs.ui/icons/correction_change.gif | Bin 136 -> 0 bytes net.sf.eclipsecs.ui/icons/correction_change.png | Bin 0 -> 311 bytes .../icons/correction_change@2x.png | Bin 0 -> 627 bytes net.sf.eclipsecs.ui/icons/remove_correction.gif | Bin 185 -> 0 bytes net.sf.eclipsecs.ui/icons/remove_correction.png | Bin 0 -> 117 bytes .../icons/remove_correction@2x.png | Bin 0 -> 186 bytes .../sf/eclipsecs/ui/CheckstyleUIPluginImages.java | 8 +++++--- .../ui/quickfixes/blocks/NeedBracesQuickfix.java | 2 +- 13 files changed, 6 insertions(+), 4 deletions(-) delete mode 100644 net.sf.eclipsecs.ui/icons/add_correction.gif create mode 100644 net.sf.eclipsecs.ui/icons/add_correction.png create mode 100644 net.sf.eclipsecs.ui/icons/add_correction@2x.png create mode 100644 net.sf.eclipsecs.ui/icons/correction_cast.png create mode 100644 net.sf.eclipsecs.ui/icons/correction_cast@2x.png delete mode 100644 net.sf.eclipsecs.ui/icons/correction_change.gif create mode 100644 net.sf.eclipsecs.ui/icons/correction_change.png create mode 100644 net.sf.eclipsecs.ui/icons/correction_change@2x.png delete mode 100644 net.sf.eclipsecs.ui/icons/remove_correction.gif create mode 100644 net.sf.eclipsecs.ui/icons/remove_correction.png create mode 100644 net.sf.eclipsecs.ui/icons/remove_correction@2x.png diff --git a/net.sf.eclipsecs.ui/icons/add_correction.gif b/net.sf.eclipsecs.ui/icons/add_correction.gif deleted file mode 100644 index 252d7ebcb8c74d6e5de66ef0eb8856622a0e9d89..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 318 zcmZ?wbhEHb6krfwxXQp_S{7na6>d=(Ze15;Qy1mX8t2lT^ zHOHgY9FJamJZkN+sI|wVk6ueSb}ixP)r4bLfn?%^+sU^crQUj&`rv8W|Ns9PC;*B- zSr{1@v>9|jW`O*}z!rUAYJrE2RKG`JYNRKhwpQrnor{(Ph`sVEnyR2Kc;c~(o$WdP zMb0Wl6K^dQ-0hgs;}1CrI2=$V|R^`O4X= z>m5xZ*^aDP_oMz{-m!WC-)W43r@jB%SIqh*?=m^n;l-ju|IOu={bRrAlF2b=_IG*N z`THmLD2iF>i&xKZIdk@3&7Z1A^)(g8e=hm2xOsDYvgv{9tYh~lNWPq(Xps~4>wN9> zNB^5MW<-2A^F_bzve7)Cg2ndEjFP**FaLMH%D&5ccH{>BRQ7=x#) KpUXO@geCwxqjDAi literal 0 HcmV?d00001 diff --git a/net.sf.eclipsecs.ui/icons/add_correction@2x.png b/net.sf.eclipsecs.ui/icons/add_correction@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..562a8fec3bf31fa9d13ddf99b9972f7047ddce0a GIT binary patch literal 461 zcmV;;0W$uHP)v2L7$M_tWD=lD z`GI(Nb)w1^5{v>g$w?sIzwF4J9mmbH3g8nHKvV(-Gd?JP#wb9w?*pRvX-AIK7;Zk{ zWfP!`jRNufVMDe9FK#}{C}1G!1)}g~Mb^X!Zh5T&6uZMfBVV*2Q+$Z#eTh0i9`OK; z+ZQu3?zw+|zvH0~=-qMyarI=X+G*YlKi@|m&>eOGkt+yQJH9jFcXfqb^Z~Mv6KI@2 z8j(8Upm|RpAYHcujkCM~skUu2?@KlN8FmJ3K%CqgkaE+CTN-q-`5)+5wE&U5(WCxQ zc}s%=n}GHuGZ5)(9a3zRH@CnjplwkAB6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ui/icons/correction_change.png b/net.sf.eclipsecs.ui/icons/correction_change.png new file mode 100644 index 0000000000000000000000000000000000000000..d9a07e503ef39a4bdb88e2c1ff5353609ca7dcc6 GIT binary patch literal 311 zcmV-70m%M|P)bG@P44JkAe8V z`J9NytIvf0a9tGn7|31$lE-U+_5}ZS*V#dDm!63Ezx`s||6@1e!T8|S`2Vp>L*AQD z2|TMkHIxUZ0ZNT-A6B1?`FZA6(tl)p{CeX5(AoYUG+W(|YBxCGHbA_<`p?$WvHu-9 zTrSBL+k8+cvwgeiRLpvtl# zmiSvb!!oA|f`I#Hs)LSY0YcK{yza9#R>o?id}002ov JPDHLkV1i>3k`w>{ literal 0 HcmV?d00001 diff --git a/net.sf.eclipsecs.ui/icons/correction_change@2x.png b/net.sf.eclipsecs.ui/icons/correction_change@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..499afa4a60b23f85f32a2288fb2cac4c4cada0eb GIT binary patch literal 627 zcmV-(0*w8MP)50$W(9-#ojFb8z(4ZCkPC*muVe;p)8RZD@s(lD77z8+}!ca&g<;_VkA z{x3Qn@yB6)wgWUeeR9-0y#H%;dH>jaF8=@7+et*@rmf-sL3%+LWDZ#lP;7A94#fWp zRs_91b1UgTvG~Zfg#VHA{QraW0`Yr=26qp#93WlccweT%@&B^JQU6a~PlV%rm*W3# zIUNhf$a34x#QwMLbpH#|2gHx1s~il-jsmd)>-#|bf7Q{b|A#Ke|DU}#{F`l?^INGR z>%Smz7zW9KFi4$dwf%3X_<4x}3(B&iNUr66ApYOBA?SbamXQAv1(rWSd?5Y}#E+ru z{~Jz3|L@!w^k1RG<`-Bj$MU>Xu`%TZl1QFa1IR$@7RUE0Ww!r7Y~dWs3V{L#0jLAP z4oI8p{a-X6>?ja_yJ(gJ4^_$lpuav2aEj#_#sYT2Qv zV)qmkv%1PvXL4rV0>rik?s+1aPxR_$LZ Hz+epkV|PIn diff --git a/net.sf.eclipsecs.ui/icons/remove_correction.png b/net.sf.eclipsecs.ui/icons/remove_correction.png new file mode 100644 index 0000000000000000000000000000000000000000..018dc33f6feb1f9088514f87816a5f5663bcdab7 GIT binary patch literal 117 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Hl8kyAr-fh6C_xhd5+|-_~);4 zEX(1=qDBAt=PeUFqEH&a`(f6ckN-bRWoeRF!nc}{Z*AfK&ZCP3?Pf4AxV|mElzEBw Q2hbb_Pgg&ebxsLQ0R7S^@c;k- literal 0 HcmV?d00001 diff --git a/net.sf.eclipsecs.ui/icons/remove_correction@2x.png b/net.sf.eclipsecs.ui/icons/remove_correction@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..f1d5570a29eb1068ab81ca603f6cdb49fbd1d22c GIT binary patch literal 186 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=ffJMo$;VkcwN$2@|x%)TjSj4!Bq=lmuR^7pVJS(yJwrCU=pKW5(Ry@-6yzeV1{y&2-ic}L85!&m*IoZDXO+`^ h;C4_0Y~ccChDeqZEvwjH90odu!PC{xWt~$(69B3lM*;u< literal 0 HcmV?d00001 diff --git a/net.sf.eclipsecs.ui/src/net/sf/eclipsecs/ui/CheckstyleUIPluginImages.java b/net.sf.eclipsecs.ui/src/net/sf/eclipsecs/ui/CheckstyleUIPluginImages.java index 1589b3e90..c3e8418c2 100644 --- a/net.sf.eclipsecs.ui/src/net/sf/eclipsecs/ui/CheckstyleUIPluginImages.java +++ b/net.sf.eclipsecs.ui/src/net/sf/eclipsecs/ui/CheckstyleUIPluginImages.java @@ -55,13 +55,15 @@ public enum CheckstyleUIPluginImages { .getImageDescriptor(ISharedImages.IMG_LCL_LINKTO_HELP)), /** Image descriptor for the add correction icon. */ CORRECTION_ADD(() -> AbstractUIPlugin.imageDescriptorFromPlugin(CheckstyleUIPlugin.PLUGIN_ID, - "icons/add_correction.gif")), + "icons/add_correction.png")), + CORRECTION_ADD_BRACES(() -> AbstractUIPlugin.imageDescriptorFromPlugin(CheckstyleUIPlugin.PLUGIN_ID, + "icons/correction_cast.png")), /** Image descriptor for the change correction icon. */ CORRECTION_CHANGE(() -> AbstractUIPlugin.imageDescriptorFromPlugin(CheckstyleUIPlugin.PLUGIN_ID, - "icons/correction_change.gif")), + "icons/correction_change.png")), /** Image descriptor for the remove correction icon. */ CORRECTION_REMOVE(() -> AbstractUIPlugin.imageDescriptorFromPlugin(CheckstyleUIPlugin.PLUGIN_ID, - "icons/remove_correction.gif")), + "icons/remove_correction.png")), /** Image descriptor for the tick icon. */ TICK_ICON(() -> AbstractUIPlugin.imageDescriptorFromPlugin(CheckstyleUIPlugin.PLUGIN_ID, "icons/tick.gif")), diff --git a/net.sf.eclipsecs.ui/src/net/sf/eclipsecs/ui/quickfixes/blocks/NeedBracesQuickfix.java b/net.sf.eclipsecs.ui/src/net/sf/eclipsecs/ui/quickfixes/blocks/NeedBracesQuickfix.java index 5792d5e3c..fc1858001 100644 --- a/net.sf.eclipsecs.ui/src/net/sf/eclipsecs/ui/quickfixes/blocks/NeedBracesQuickfix.java +++ b/net.sf.eclipsecs.ui/src/net/sf/eclipsecs/ui/quickfixes/blocks/NeedBracesQuickfix.java @@ -151,6 +151,6 @@ public String getLabel() { @Override public Image getImage() { - return CheckstyleUIPluginImages.CORRECTION_ADD.getImage(); + return CheckstyleUIPluginImages.CORRECTION_ADD_BRACES.getImage(); } }