mirror of
https://github.com/wu736139669/hapi.git
synced 2026-10-10 19:42:21 +00:00
Port web's per-agent brand icons (web/src/components/AgentFlavorIcon.tsx, brand SVGs via @lobehub/icons v5.4.0) to Android and iOS — device feedback: neither native app showed agent icons. Android: 10 VectorDrawables (ic_agent_*) + AgentFlavorIcon composable (color variants render untinted Image; monos tint via LocalContentColor; copilot fixed #24292F/#E6EDF3; unknown -> "Un" badge) with light/dark previews. Codex/gemini keep their real gradients via aapt attrs; Antigravity's blurred-blob wing (SVG filters, unportable) is approximated with a green-yellow-red-blue linear gradient over the wing path. iOS: Assets.xcassets/AgentIcons imagesets (SVG, preserves-vector; monos template-intent) + AgentFlavorIconView. SVGs stay paths-only for Xcode's rasterizer, so gradient marks flatten: codex glyph -> #7A9DFF (middle stop), gemini -> #3186FF base star, agy -> #3186FF wing. Wired to match web placements on both apps: session-list row (icon before title; flavor label leaves the meta line), chat header meta line (icon + label), new-session agent picker (chip leadingIcon / Label icon). Verified: gradle :app:testDebugUnitTest :app:assembleDebug green; iOS Contents.json/SVGs machine-validated, swiftc -parse clean, geometry eyeballed via rendered contact sheet (app target still compile-unverified on Linux).