Skip to content

List view: full-height art and video, details over them, a hold that stops - #476

Draft
tarikbc wants to merge 3 commits into
mainfrom
listview
Draft

tarikbc wants to merge 3 commits into
mainfrom
listview

Conversation

@tarikbc

@tarikbc tarikbc commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

The List view with my picks from the List View lab (https://claude.ai/artifact/K8fQoQt7sWzGjq7G3h5vDT): the art and the video at full height, the details over them that go down after 2 s, the video at once, and a held Up or Down that stops at the end.

What changes

Full height. The media's box is as tall as the rows (448, y 200 to 648), square at 448 x 448 on the Pixel 2 and the Brick, 600 x 448 on the Smart Pro's 1368 canvas (#398; the box takes the width past 4:3's, up to a 4:3 snap's). A 4:3 snap plays at 448 x 336 units: 280 x 210 pixels on the Pixel 2, against 200 x 150 before. Every picture is whole at its own shape with its foot on the box's foot, so the details stand at one height for every shape. The list keeps its 8 rows of 56 and names stay in meta (37); the name column is 320 units on 4:3 (448 before) and 512 on the Smart Pro. The geometry is a pure module now, src/listbox.h.

The details over the media. "FUll height, show the details on top of the video in a very subtle way, maybe with a gradient, and collapse the details in 2s so u can see th efull media". The facts (the same as before) and A's hint sit over the picture's foot, inset 24 from its sides, on the theme's ground fading up from the foot (the Video view's top fade turned over), so the picture melts into the page.

How much ground is worked out, not typed: the least under which every line keeps the 4.5:1 text is owed (DESIGN.md 3.2) over any picture, its worst black or white, in the theme, tone and accent that are on (gl_ground_alpha). The facts are in text-soft: it needs about 75% of ground (191 of 255 in Beard, 189 in Salt & Pepper), where text-dim would need 87 to 94%. With a "needs firmware" line the ground rises to what warning needs, up to the Video view's band's 92% (90% in Salt & Pepper); Beard's warning is only 4.53:1 on the bare ground, so there it is also walked three twentieths toward text, as the port loading screen's band is walked (a darker red, listed in DESIGN.md 14). check-listbox holds every line at 4.5:1 or more over any picture in all 60 looks (2 themes, 3 tones, 10 accents).

They go down at rest. After hold-band (2 s) with no press on a game whose snap plays, the details fade and sink 24 units in move; any press, a page or a menu over the list, or the snap going brings them back in quick. A game with no snap keeps them up, as the Video view keeps its band. It is the Video view's own code now: src/snaprest.h drives the Video view's band and the List view's details, and the Video view's copy (vv_motion, vv_reset, vv_touch, vv_rest, vv_band) is gone. Its shots are byte-identical before and after (108 frames: shelf-video, -snap, -half, -strip, screenshots-viewer, -strip, in 9 languages on the Pixel 2 and the Brick).

The snap at once. As the Video view: asked the frame the focus comes, no hold-snap and no bar, and not while a direction is held, so a scroll opens no file. The cover shows until the first picture and turns into it as before. The decode does not change (the clip's own size, at most 640 x 480); only the scaled draw grows.

A held Up or Down stops at the end with the edge sound once, and the next press goes round, as menus and the home's Grid do. The grid's Left and Right step along the same shelf_move code, so they follow the same rule now (they went round on a hold before, unlike the home's Grid). The cover row and the Video view's band still go round held or not, as the home's row does. MP4's shelf uses shelf_move too, so its list and grid follow.

A list's page goes by the same rule. L1 and R1 page every list one way now, gg_page in src/gridrule.c: a screenful on, or to the end where less is left; from the end a press goes round and a held one stops there with the edge sound once. That is the shelf's list and grid, the home's Grid and the achievement list (the one menu list that pages). Before, the list went round on a hold, the grids went to the end and then round, and the achievement list never went round. Tabs (MENU's, the in-game menu's) and rows (the home's Spotlight and Gallery, the cover row, the Video view's band) still go round, as their Left and Right do. DESIGN.md 11.3 says it next to the list rule.

Slide tokens. The marquee's still times are 8.2 tokens now, slide-hold (1400) and slide-end (900); nothing on screen changes. Its speed (70 units a second) and fade (36 units) are not durations, so they stay in src/ui.c, named in the tokens' text.

No new strings.

Checks

  • check-listbox: the boxes on 4:3 and on the Smart Pro's canvas, every shape whole with its foot on the box's, the details inset over the picture; every line at 4.5:1 over any picture in every look.
  • check-snaprest: up until the snap plays, down hold-band after the snap's start or the last press, in move; up in quick at a press or as the snap goes; A in the Screenshots viewer down at once.
  • check-games: the Video view's band and the List view's details driven through vv_draw and gl_draw on one clock.
  • check-shelfkeys (desk mode): on the list a held Down walks to the last game and stops, a press goes round, a held Up the same way back; the grid's Left and Right the same; the cover row's held Right goes round; L1 and R1 on the shelf's list and grid, the home's Grid and the achievement list page to the end, stop there held and go round pressed. It fails without the change (8 failures on the old step rule, 10 with pages that always go round).
  • check-gridrule: gg_page held and pressed.
  • New i18n shots shelf-list-snap and shelf-list-rest in 8 languages on the Pixel 2 and the Brick.

Cost

The scaled draw of the snap grows from 30,000 to 58,800 panel pixels on the Pixel 2, and the details' fade adds about 36,000 blended pixels while it shows (none once it is down). The Video view draws 307,200 from the same decoder. On this Mac, SDL's software renderer at the Pixel 2's 640 x 480, a frame of clear plus the snap's copy: 0.062 ms today, 0.103 ms full height, 0.200 ms with the fade. That is the CPU's fill, not the Pixel 2's GPU; the steps below measure it there.

To measure on the Pixel 2

On a PlayStation shelf with video snaps, MENU > View > List. Once on main's build, once on this one:

tools/px2 perf 30                                       # rest on a game with a snap: 2 s with the details, then the whole picture
tools/px2 ssh 'px2-perf 12 & sleep 1; px2-input down:8000; wait'                       # Down held 8 s, then let go
tools/px2 ssh 'px2-perf 15 & for i in $(seq 12); do px2-input down; sleep 1; done; wait'  # a press a second: a snap at every stop

Compare the frame-time median and 95th percentile, the launcher's and the snap daemon's CPU and the GPU's clock. The third line is the cost of "at once", the same as the Video view's.

…stops

My picks from the List View lab:

- The art and the snap in a box as tall as the rows (448), square on
  the Pixel 2 and the Brick, 600 x 448 on the Smart Pro's canvas; every
  picture whole with its foot on the box's foot (src/listbox.h).
- The facts and A's hint over the picture's foot, on the ground fading
  up from it, in text-soft so they read over any art; after hold-band
  with the snap playing they fade and sink, and a press or the snap
  going brings them back (src/snaprest.h).
- The snap asked the frame the focus comes, as the Video view's, not
  while a direction is held; no hold-snap and no bar on the list.
- A held Up or Down on the list stops at the end with the edge sound
  once and the next press goes round, as menus and the home's Grid do;
  the grid's Left and Right step the same way now.
- The marquee's still times as tokens, slide-hold and slide-end.

Checks: check-listbox, check-snaprest, check-shelfkeys; i18n shots
shelf-list-snap and shelf-list-rest.
… both views

The details over the media are text and owe 4.5:1, and the picture shows
through the ground under them. So the ground is laid at the least alpha
that keeps every line at 4.5:1 over any picture in the look that is on:
about 75% for text-soft. A firmware line raises it to what warning needs,
up to the Video view's band's 92%, and in Beard warning is also walked
three twentieths toward text, as the port loading band is walked.
check-listbox holds every line in all 60 looks.

The Video view's band now rests through src/snaprest.h too, and its own
copy of the rule is gone: one implementation for both views. Its shots
are byte for byte what they were. check-games drives both views through
the same clock.
A page goes a screenful on, or to the end where less is left; from the
end a press goes round and a held one stops there with the edge sound
once, as a held direction does. gg_page takes the press or the hold and
pages the shelf's list and grid, the home's Grid and the achievement
list. Before, the list went round on a hold, the grids went to the end
and round, and the achievement list never went round. Tabs and rows
still go round, as their Left and Right do.

check-shelfkeys pages all four in desk mode; check-gridrule holds
gg_page held and pressed.

This branch has not been deployed

No deployments
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