Present overlay: one hard-wired compile line, no item list to extend #255

Open
opened 2026-12-02 17:12:00 +00:00 by github-bot · 0 comments
Owner

@⁠TheRifai on GitHub · 2026-12-02 16:31 UTC · original

Finding (TASKS "Present overlay as a list of items", line 1008)

Seen on: main 9d4e2f1 (code read). The overlay is hard-wired to one item: greenfield/vkback/src/present/line.rs:draw_line() calls overlay::panel(text, done, total, eh) once, places it with overlay::place(pw, ph, ew, eh), and blends it from one self.panel buffer. pipewait.rs is the only producer of text/done/total, and Presenter::Source::Title { line } carries a single Option for it. There is no list to add a pixel-probe aim mark to.

I did not land the refactor: it touches the panel buffer ring, the blend draw and the present source type, and TASKS asks for a list so further items can be added — a structural change with no bug or decision attached to it yet (AGENTS.md "less code wins"). A one-item Vec would only add indirection. No code change from me.

Next

Name the second overlay item first (the pixel-probe aim mark in the task) and its position/lifetime, then change Source::Title to a list of items and loop the existing blend path; verify with a screenshot at a fixed shot point that the compile line is unchanged.

**@⁠TheRifai** on GitHub · 2026-12-02 16:31 UTC · [original](https://github.com/vktory6/VKtory/issues/255) ## Finding (TASKS "Present overlay as a list of items", line 1008) **Seen on:** main `9d4e2f1` (code read). The overlay is hard-wired to one item: `greenfield/vkback/src/present/line.rs:draw_line()` calls `overlay::panel(text, done, total, eh)` once, places it with `overlay::place(pw, ph, ew, eh)`, and blends it from one `self.panel` buffer. `pipewait.rs` is the only producer of `text`/`done`/`total`, and `Presenter::Source::Title { line }` carries a single `Option` for it. There is no list to add a pixel-probe aim mark to. I did not land the refactor: it touches the panel buffer ring, the blend draw and the present source type, and TASKS asks for a list so further items can be added — a structural change with no bug or decision attached to it yet (AGENTS.md "less code wins"). A one-item `Vec` would only add indirection. No code change from me. ## Next Name the second overlay item first (the pixel-probe aim mark in the task) and its position/lifetime, then change `Source::Title` to a list of items and loop the existing blend path; verify with a screenshot at a fixed shot point that the compile line is unchanged.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 17:12:00 +00:00
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/vktory6--VKtory#255
No description provided.