DesktopCanvas display a white screen!

Hi,
Is there a bug with DesktopCanvas in the latest version of Xojo?
I recently programmed a Launchpad clone based on the Canvas component, but with the Liquid Glass version of Tahoe, some application icons are not displaying properly.
When I simply replace the Canvas with its new version and use the same properties in the Xojo inspector, nothing displays. Just a white screen!
Does anyone have any ideas?
Dan

I just replaced the DesktopCanvas from a slightly older version (but not much) with the new DesktopCanvas from Xojo 2025r3. I thought that the ‘Liquid Glass’ effect was now supported by this component (and others).

@Denis_DUBOIS

Maybe this can help?

macOS and iOS: UI Compatibility Mode

I’m still using macOS 15 so not ventures into all the different new UI (Liquid Glass)

The first screenshot of my app is on macOS 15 Sequoia, the second is on macOS 26 Tahoe. The icons are displayed in a DesktopCanvas. No code changes between the two. The colour degradation is obvious. Why? How can this be fixed?

What color degradation do you mean???

1 Like

Take a closer look: some icons are missing colours. The rendering is ugly. Even the background colour is different.
(bottom image: Sequoia, top image: Tahoe)
Thanks

Yeah, the icons in the first screenshot are seriously mangled. I’d look at the code that you use to retrieve those icons, inspect the icons while debugging to see if they look that way before drawing, and zero in on where the issue is occurring. But this is different than “DesktopCanvas display a white screen!” Did you resolve the initial issue?

2 Likes

If you want to save yourself the headache someone already did this: https://launchie.app

Do you fill that Canvas first using White color (before drawing the icons themselves, I mean) or its background is just Transparent / Clear color?

The rendering is ugly.

if you paint something have a look at properties

AntiAliased
AntiAliasMode

in graphics
and use HighQuality

Yes, its background is just Transparent.

You can try filling the background with a solid color before painting the icons to see if that makes a difference (I don’t think so); but mostly interested in the code you’e using to retrieve the icons themselves from the .icns file. Maybe something is going wrong at that side of things?

Anyway, probably it would be better to edit the title of this thread so it better expreses the real issue
 :slight_smile:

1 Like

Can you share a simple sample project that creates this problem?
You can zip this sample project and upload to your post.

Whoa wait a sec. Looking at the two images, what you’re seeing is also the difference between the icons because of the version of macOS itself. That probably means that the ones from Tahoe are in the new layered format and you’re just not rendering them correctly.

How about showing us the code you’re using to retrieve and render those icons in a sample project so we can see what’s actually going on.