Skip to content

fix(car): match actool output for colors, namespaces, opacity and variants - #8

Open
ap-1 wants to merge 7 commits into
xtool-org:mainfrom
ap-1:car-fixes
Open

ap-1 wants to merge 7 commits into
xtool-org:mainfrom
ap-1:car-fixes

Conversation

@ap-1

@ap-1 ap-1 commented Nov 22, 2026

Copy link
Copy Markdown

This fixes several places where the compiled Assets.car differs from what actool (Xcode 27.1) produces for the same catalog:

  • Assets inside provides-namespace folders get the folder prefix in their names, and app icon sets inside a namespace are rejected
  • Named colors are keyed and encoded so that CoreUI can resolve them
  • Bitmaps are flagged opaque only when every pixel is opaque (previously every bitmap was)
  • BITMAPKEYS descriptors are computed from each asset's renditions instead of a fixed template that only declared 2x (which made CoreUI skip 1x renditions)
  • Color spaces and component values are encoded the way actool encodes them, including gray and integer components
  • High-contrast and light appearance variants get their own keys
  • Display-P3 variants are keyed separately from sRGB variants

I built an iOS app with a test catalog and ran it on an iPhone 17 Pro with actool's Assets.car and with this branch's, and both gave the same results under every trait combination.

ap-1 added 7 commits November 22, 2026 01:02
Signed-off-by: Anish Pallati <i@anish.land>
Signed-off-by: Anish Pallati <i@anish.land>
Signed-off-by: Anish Pallati <i@anish.land>
Signed-off-by: Anish Pallati <i@anish.land>
Signed-off-by: Anish Pallati <i@anish.land>
@coderabbitai

coderabbitai Bot commented Nov 22, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 67f2e08a-5d12-40b9-821f-3aa281d70de9
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant