Jump to content

ToolSet Icon Images


Recommended Posts

Hi All

 

I'm having some problems trying to add an image to a ToolSet when editing a workspace. I don't get any errors when assigning the image, but I always get the Missing image Cross instead of the actual image. (SS for reference below)

 

image.png.6adb939fda6ae8424c71e028a79a4c74.png

 

I don't think it's a code related issue as I get the same issues when trying to manually add an image within the Edit Workspace Dialog. 

 

Having read this thread  I believe my issue is probably related to the DPI of the image. I am 99% sure that the DPI is set to 72DPI, i've tried multiple images all with the same results.  

 

As noted in the docs I am using 2 images one with a resolution of 26x20 @72 DPI and a second image with the Filename ending @2x.png at 52x40 @72 DPI. I don't get any errors when I manually import the images (or via code) but I just always seem to get the missing image file icon...

 

I've attached the Icons for reference

 

Any help would be greatly appreciated, been banging my head against this for a day now! I'm sure it's something really basic i'm doing wrong!

ProdLXToolSetLogo@2x.png

ProdLXToolSetLogo.png

Link to comment

Ah do you know thats probably the issue! Do you know what teh naming convention for Darkmode is? By the looks of things I think I need to add "_dark" at the end. But I wonder what do I need to do for the @2x shoudl it be "_dark@2x.png"? 

 

I did just quickly manually try copying the images and renaming them to:

ProdLXToolSetLogo_dark.png

ProdLXToolSetLogo_dark@2x.png

 

But I still get the same not displaying the image problem. I tried selecting both the "normal" image and the Dark image

Link to comment

@tbexon You have the naming convention right, but unfortunately the dark mode only works using the newer .svg file format rather than .png.  One nice thing is that you no longer need the @2x version.  The .svg file will handle scaling based on the display resolution.  It does make things trickier for backwards compatibility, though.

 

But .png files still work for tools and plug-ins, just not for tool set icons.

Edited by Jesse Cogswell
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...