# ICON surrounded by Black

**URL:** <https://forum.xojo.com/t/icon-surrounded-by-black/69898>\
**Category:** General\
**Created:** [April 26, 2022, 6:24am UTC](https://forum.xojo.com/t/icon-surrounded-by-black/69898 "2022-04-26T06:24:30Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bill\_Snaith](https://forum.xojo.com/letter_avatar_proxy/v4/letter/b/82dd89/32.png) [@Bill\_Snaith](https://forum.xojo.com/u/Bill_Snaith)\
**Post date:** [April 26, 2022, 6:24am UTC](https://forum.xojo.com/t/icon-surrounded-by-black/69898/1 "2022-04-26T06:24:30Z")

</div>

I changed the icon in my App, and now it appears with a Black surround in the Dock, as if the icon is too small? Yet my icon appears larger than any other icon in the tray, so WHY have I suddenly got a Black surround?

---

<div class="post-metadata">

**Author:** ![Beatrix\_Willius](https://forum.xojo.com/user_avatar/forum.xojo.com/beatrix_willius/32/282_2.png) [@Beatrix\_Willius](https://forum.xojo.com/u/Beatrix_Willius)\
**Post date:** [April 26, 2022, 6:56am UTC](https://forum.xojo.com/t/icon-surrounded-by-black/69898/2 "2022-04-26T06:56:52Z")

</div>

Have you lost the transparency of your icons? Can you post a screenshot of the icon in the IDE?

---

<div class="post-metadata">

**Author:** ![Peter\_Koren](https://forum.xojo.com/letter_avatar_proxy/v4/letter/p/f14d63/32.png) [@Peter\_Koren](https://forum.xojo.com/u/Peter_Koren)\
**Post date:** [April 26, 2022, 11:56am UTC](https://forum.xojo.com/t/icon-surrounded-by-black/69898/3 "2022-04-26T11:56:59Z")

</div>

> [@Bill\_Snaith](#):
>
> I changed the icon in my App, and now it appears with a Black surround in the Dock, as if the icon is too small? Yet my icon appears larger than any other icon in the tray, so WHY have I suddenly got a Black surround?

It has happened to me several times, then I re-saved the png icon in Photoshop with 72 dpi, dragged it to Xojo and everything was ok.

---

<div class="post-metadata">

**Author:** ![Bill\_Snaith](https://forum.xojo.com/letter_avatar_proxy/v4/letter/b/82dd89/32.png) [@Bill\_Snaith](https://forum.xojo.com/u/Bill_Snaith)\
**Post date:** [April 28, 2022, 5:47am UTC](https://forum.xojo.com/t/icon-surrounded-by-black/69898/4 "2022-04-28T05:47:40Z")

</div>

Thank you for your reply.  
I’ve not changed Transparency. I attach here a screen dump of icon in tray.

 ![IMG_1123](https://forum.xojo.com/uploads/default/original/2X/2/22f71ade9c4567c70fe2691332c675a8d6dfdb84.jpeg)

---

<div class="post-metadata">

**Author:** ![Bill\_Snaith](https://forum.xojo.com/letter_avatar_proxy/v4/letter/b/82dd89/32.png) [@Bill\_Snaith](https://forum.xojo.com/u/Bill_Snaith)\
**Post date:** [April 28, 2022, 6:12am UTC](https://forum.xojo.com/t/icon-surrounded-by-black/69898/5 "2022-04-28T06:12:46Z")

</div>

DONE!  
Beatrix thank you for your help. I have reset the icon to a larger size again and it has worked as shown below. I reduced the icon because it was larger than any other App in my tray.

 ![IMG_1124](https://forum.xojo.com/uploads/default/original/2X/7/718bafdaac83ba8adbd69ae24b5e79a21b2e9e3b.jpeg)

---

<div class="post-metadata">

**Author:** ![Ian\_Kennedy](https://forum.xojo.com/user_avatar/forum.xojo.com/ian_kennedy/32/6860_2.png) [@Ian\_Kennedy](https://forum.xojo.com/u/Ian_Kennedy)\
**Post date:** [April 28, 2022, 9:26am UTC](https://forum.xojo.com/t/icon-surrounded-by-black/69898/6 "2022-04-28T09:26:57Z")

</div>

Did you drag you icon into the Images page of the Icon editor, rather than the Preview page? That would cause the Icon (drawn element) to be changed but not the Mask element. If you are dragging a transparent PNG file (or equivalent) make sure you are on the Preview tab before drag and drop the file.

---

<div class="post-metadata">

**Author:** ![Bill\_Snaith](https://forum.xojo.com/letter_avatar_proxy/v4/letter/b/82dd89/32.png) [@Bill\_Snaith](https://forum.xojo.com/u/Bill_Snaith)\
**Post date:** [April 28, 2022, 10:08am UTC](https://forum.xojo.com/t/icon-surrounded-by-black/69898/7 "2022-04-28T10:08:10Z")

</div>

Thanks Ian, I will test out how I did it and use your method. I’m working on other stuff just now.

---

<div class="post-metadata">

**Author:** ![Greg\_O](https://forum.xojo.com/user_avatar/forum.xojo.com/greg_o/32/22785_2.png) [@Greg\_O](https://forum.xojo.com/u/Greg_O)\
**Post date:** [April 28, 2022, 10:27am UTC](https://forum.xojo.com/t/icon-surrounded-by-black/69898/8 "2022-04-28T10:27:45Z")

</div>

That looks like the icon _had_ a drop shadow around it and the shadow transparency got removed.

---

<div class="post-metadata">

**Author:** ![Bill\_Snaith](https://forum.xojo.com/letter_avatar_proxy/v4/letter/b/82dd89/32.png) [@Bill\_Snaith](https://forum.xojo.com/u/Bill_Snaith)\
**Post date:** [April 28, 2022, 11:16am UTC](https://forum.xojo.com/t/icon-surrounded-by-black/69898/9 "2022-04-28T11:16:33Z")

</div>

Greg, I don’t think I have a drop shadow… but maybe. What software do you use to create icons?

---

<div class="post-metadata">

**Author:** ![Greg\_O](https://forum.xojo.com/user_avatar/forum.xojo.com/greg_o/32/22785_2.png) [@Greg\_O](https://forum.xojo.com/u/Greg_O)\
**Post date:** [April 29, 2022, 3:25am UTC](https://forum.xojo.com/t/icon-surrounded-by-black/69898/10 "2022-04-29T03:25:27Z")

</div>

As I have some graphic arts experience, I use an app called [Sketch](https://www.sketch.com/).

---

<div class="post-metadata">

**Author:** ![Sam\_Rowlands](https://forum.xojo.com/user_avatar/forum.xojo.com/sam_rowlands/32/265_2.png) [@Sam\_Rowlands](https://forum.xojo.com/u/Sam_Rowlands)\
**Post date:** [April 29, 2022, 3:38am UTC](https://forum.xojo.com/t/icon-surrounded-by-black/69898/11 "2022-04-29T03:38:04Z")

</div>

Iconographer Mini has a BS app template that you can add your graphic too and it will create the shape for you at the correct size and with the Apple drop shadow.

If you have App Wrapper, Iconogrpaher Mini is included, otherwise, you can currently pick up Iconographer Mini from the App Store [https://apps.apple.com/gb/app/iconographer-mini/id1541509510?mt=12](https://apps.apple.com/gb/app/iconographer-mini/id1541509510?mt=12)
