Repository navigation
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-listboxholds 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.hdrives 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_movecode, 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 usesshelf_movetoo, 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_pageinsrc/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) andslide-end(900); nothing on screen changes. Its speed (70 units a second) and fade (36 units) are not durations, so they stay insrc/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 throughvv_drawandgl_drawon 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_pageheld and pressed.shelf-list-snapandshelf-list-restin 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:
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.