Skip to content

Move per-core CPU/GPU into horizontal header lines - #11

Merged
abosnjakovic merged 1 commit into
mainfrom
horizontal-core-lines
Jun 23, 2026
Merged

Move per-core CPU/GPU into horizontal header lines#11
abosnjakovic merged 1 commit into
mainfrom
horizontal-core-lines

Conversation

@abosnjakovic

Copy link
Copy Markdown
Owner

What

Relocates per-core CPU (C0…) and GPU (G0…) usage from the right-side vertical panel into two full-width horizontal lines directly under the KPI header, in tight label:percent form (e.g. cpu C0:10% C1:7% …). The timeline graph now reclaims the full width.

Why

The vertical per-core column ate 20% of the timeline width and was awkward to scan. Two compact horizontal rows under the header read more naturally and free the chart to span the full terminal.

Details

  • src/ui.rs
    • Reworked the main vertical layout: header → cpu line → gpu line → separator → full-width timeline.
    • Added render_cpu_cores_line / render_gpu_cores_line (thin wrappers over a shared render_cores_line helper) that build a single clipping Line of per-core cells; percentages are colour-graded by load via the existing get_gradient_color.
    • Removed the old render_cores_panel, render_cpu_cores_panel, render_gpu_cores_panel, and render_core_dot_line.
  • src/app.rs — removed the now-unused get_cpu_count.
  • src/theme.rs — dimmed the live-edge cursor (THEME.cursor) from white to Rgb(90, 90, 100). With the timeline now full-width, the "now" marker sits at the screen edge; dimming stops it reading as a stray white bar while keeping it visible as a marker.

Verification

  • cargo build clean, cargo clippy clean, no dead-code warnings.
  • Per-core rows render under the header; timeline spans full width; narrow terminals clip the core lines cleanly (no wrap, no panic).

🤖 Generated with Claude Code

@abosnjakovic abosnjakovic self-assigned this Jun 23, 2026
Relocate per-core CPU (C0..) and GPU (G0..) usage from the right-side
vertical panel into two full-width horizontal lines directly under the
KPI header, in tight label:percent form. The timeline graph reclaims the
full width. Dim the live-edge cursor so it reads as a marker rather than
a stray white bar now that it sits at the screen edge.
@abosnjakovic
abosnjakovic force-pushed the horizontal-core-lines branch from 09a5269 to d4726c6 Compare June 23, 2026 10:54
@abosnjakovic
abosnjakovic merged commit 16a229e into main Jun 23, 2026
2 checks passed
@abosnjakovic
abosnjakovic deleted the horizontal-core-lines branch August 14, 2026 22:05
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