~ knotless Search/
↑↓ move↵ open⇧↵ all results

chadtmiller.com/hud

A remote MCP server that shows atproto records as interactive UI inside MCP Apps hosts

0
0

Android: filled icons and a tile's many mark as on iOS and the web

Merged
Merged chadtmiller.com asked to merge into main from chadtmiller.com/hud:android/look

On Android, a profile's chosen Panes tab (galleries grid, stories clock) was drawn as a blank white square or circle, and a tile holding more than one photo carried a mark like a checkbox. Both now look as they do on iOS and the web: a filled grid and clock, and the web's stacked squares.

Claude Opus 5.5 · high

What changes

Filled icons. Glyphs.vector(name, filled = true) used to fill every stroked path of an icon. That suits a heart or a star, but it buried any detail inside the outline: a grid's lines and a clock's hands are the same colour as the fill. Now an icon drawn filled uses its own filled form. The grid is nine squares (iOS's square.grid.3x3.fill), the clock is a disc with its hands cut out (clock.fill), and the release tag keeps its hole (tag.fill), all even-odd. Closed shapes (heart, star, play, pause, comment, the reply bubble, pin, bell, people, userPlus) are filled as they are drawn. Any other icon is drawn as it is plain, as the web's Panes does, and the colour and accent line still say which tab is chosen.

Every catalog icon has a glyph. Android was missing the frame's imagePlus, logIn and logOut, and pause. They are copied from icons.ts. An Icon's reply is now the replied-to arrow, as the web (REASONS) and iOS (arrow.turn.down.right) draw it; Android drew a speech bubble.

A tile's many mark. A Covers tile counting more than one picture is marked with CoverTile.svelte's stacked squares: 18dp, 8dp in from the corner, white with a 2dp soft shadow. It is drawn once for each size into a bitmap, so a frame only copies it and never blurs per frame.

Why

Each platform should draw a view the same way. iOS takes SF Symbols' .fill variants. Android has no such set, so its filled forms are drawn here. A filled form that falls back to the plain glyph can never become a blob, which filling the outline did.

How it was checked

  • just android-test: 156 tests pass. The new GlyphsTest reads schemas/json/view.json and app.json (the build passes hud.schemas) and checks that every icon a component or the frame may name resolves to a glyph, plain and filled. It draws each one under Robolectric's native graphics and fails if a filled icon hides details the plain one has: holes, or a piece standing inside one. Old behaviour would fail it for grid, clock and release. It also checks that the grid is nine pieces and that the clock and the tag each have one hole.
  • just lint.
  • On the emulator, Grain's app built against this hudkit from Maven local: chadtmiller.com's profile (Galleries, Favorites and Stories chosen in turn), Home and Explore, dark. The pull's picture shows the Panes row before (0.3.0) and after.

Shortcomings

  • Light mode was not checked on the emulator. The signed-in account's choice of scheme overrides the system's, and switching it would write to a real account.
  • The web's Panes does not fill a chosen icon. iOS does, and Android now does too where a filled form exists, but feed stays plain on Android while iOS fills photo.on.rectangle.
  • Not changed, after looking:
    • Grain's grid tiles that seemed letterboxed are cropped correctly; those photos have white borders in the image itself (cdn feed_thumbnail is 1000×750 with white bands).
    • Home's first card sits in a carousel frame shaped for the gallery's tallest photo (3:4), with the landscape photo fitted inside it, as Gallery.svelte and iOS's frame do too.
    • The grey circle on the stories strip is Grain's PullToRefreshBox indicator peeking at the top centre, which is in Grain's app, not this kit.

android-look-compare.png

Approved

This pull gives Android real filled forms for icons. A chosen grid is nine squares. A chosen clock is a disc with its hands cut out. The release tag keeps its hole. Icons that are single closed shapes fill as drawn, and every other icon stays plain. It also adds the missing pause, imagePlus, logIn and logOut glyphs and points Icon's reply at the repliedTo arrow. A Covers tile's many mark becomes the web's stacked squares, drawn once per size into a bitmap.

I read the whole diff and found nothing that must change.

  • repliedTo exists in Glyphs.strokes, so the iconGlyphs change resolves. Dropping reply from filledGlyphs is right, because the arrow is open and has nothing to fill.
  • A change file is included, as the repository asks.
  • GlyphsTest checks every catalog icon against the schemas and fails if a filled icon hides detail the plain one has.

I did not run the build or tests. I also did not see the check results, so I'm relying on the pull's report of 156 passing tests.

Merged as 31cb3ce