Commit graph

6 commits

Author SHA1 Message Date
GaltRanch
cb89d6fbcf Restore Panel boxes with transparent background (style='on default')
Bring back the Panel borders for sysinfo, status bar, header, and menu
but use style='on default' which inherits the terminal's background
color instead of Rich's default dark gray. border_style='dim' keeps
the borders subtle.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 15:29:47 -03:00
GaltRanch
db640ac8fc Replace Rich Tables with inline console.print for transparent backgrounds
Tables pad columns with spaces that show a different background color.
Switch sysinfo and menu to console.print() with markup strings instead,
which render with the terminal's native background color.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 15:28:30 -03:00
GaltRanch
2f60500162 Remove Rich Panel borders from status bar and header
Replace Panel() wrappers with plain text output for status_bar and
header — Panels create a visible background box that clashes with
dark terminal themes. Error/warning panels kept as-is since they
should visually stand out.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 15:26:29 -03:00
GaltRanch
b86fdcb1ce Fix Rich background colors to match terminal background
- Use transparent backgrounds instead of forced dark grays in panels
- Replace ░ block chars with ─ dashes for progress bar empty space
- Set console highlight=False to prevent unwanted auto-styling
- Remove pyblock.dim style from panels (used default dim instead)

Rich elements now blend seamlessly with the terminal's own background.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 15:24:28 -03:00
GaltRanch
88b1609100 Fix Rich sysinfo bar rendering raw markup tags
Use Text.from_markup() instead of Text() for the CPU/Memory progress
bars so Rich markup tags ([green], [dim]) are interpreted as styles
rather than displayed as literal text.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 13:46:35 -03:00
GaltRanch
db35505284 Add shared/rich_ui.py with Rich-based UI components
Level 2 foundation module providing styled alternatives to ANSI output:
- rich_status_bar(): Panel with mode/block/price using PyBLOCK theme
- rich_sysinfo(): CPU/Memory with color-coded progress bars
- rich_menu(): Table-based menu rendering with styled keys
- rich_header(): Node info panel with alias/block/version
- rich_error/warning/success(): Styled message panels
- rich_loading(): Rich Progress spinner for async operations
- rich_prompt(): Styled input prompt
- PYBLOCK_THEME: Custom Rich theme with bitcoin color scheme

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 13:27:25 -03:00