rhysmorgan134 / node-CarPlay

MIT License
131 stars 23 forks source link

Unable to set icon for car button #64

Closed steelbrain closed 9 months ago

steelbrain commented 9 months ago

I used the integrated configIcon.ts script and all I'm getting is what's in the screenshot below.

Is there an example icon file that works fine?

gozmanyoni commented 9 months ago

@steelbrain what resolution/file extension did you have?

steelbrain commented 9 months ago

@gozmanyoni I used a png file in 256x256, then modified the code to point to two other files that are 120 and 180.

gozmanyoni commented 9 months ago

@steelbrain hmm, we might need to also write the 256x256 image to the oem_icon path, could you try that:

await driver.send(new SendFile(iconBuff, FileAddress.OEM_ICON))

steelbrain commented 9 months ago

@gozmanyoni No dice, is it working for you locally?

steelbrain commented 9 months ago

Okay so this is embarassing but I tried a non-transparent PNG and it finally worked :) Apologies. Closing the issue. I also did it with the OEM_ICON, not sure if that helped