Repository navigation
feat: show an extension's progress as an underline under its cell - #75
Merged
Merged
Conversation
An extension can now draw a hairline under its cell, as the player does under its track: a fixed value, or a start and end the bar advances on its own clock so a timed run moves without a frame per pixel. The line is the accent rather than the cell's colour, since a line in the text's own colour reads as part of the text; a role tints it for a state worth noticing.
Speaks protocol 3 and sends the running job's time limit as the cell's progress span, tinted peach near the limit, and wakes at the warning threshold so the tint lands on time.
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.
Extension protocol 3 adds a
progressfield to an extension's cell. The bar draws it as a hairline under the cell, like the player's track line. mlq uses it to show the headline run against its time limit.Design decisions
start/endspan moves on the bar's clock and only redraws when it crosses a device pixel, so the extension sends no frames while the run progresses.Playheadnow saturates on extreme timestamps and waits for a span that hasn't started yet.Testing
cargo testandcargo clippy --all-targetsare clean.