tbexon Posted August 31 Share Posted August 31 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) 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! Quote Link to comment
MarcelP102 Posted August 31 Share Posted August 31 If you use VW 2024 you should also add a dark version of the icon. Otherwise there will be no icon if you have the dark modus selected. Perhaps this wil help? Quote Link to comment
tbexon Posted August 31 Author Share Posted August 31 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 Quote Link to comment
tbexon Posted August 31 Author Share Posted August 31 It's definetely a dark mode problem though. I swapped to Light Mode and it worked straight away Quote Link to comment
rDesign Posted August 31 Share Posted August 31 3 hours ago, tbexon said: Do you know what teh naming convention for Darkmode is? I found this thread which might offer some guidance: Quote Link to comment
Jesse Cogswell Posted August 31 Share Posted August 31 (edited) @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 August 31 by Jesse Cogswell Quote Link to comment
Recommended Posts
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.