Coverage for src / lilbee / cli / tui / widgets / top_bars.py: 100%
7 statements
« prev ^ index » next coverage.py v7.13.4, created at 2026-04-29 19:16 +0000
« prev ^ index » next coverage.py v7.13.4, created at 2026-04-29 19:16 +0000
1"""Vertical container docked to the screen's top edge.
3Mirrors BottomBars: Textual's ``dock: top`` does not stack siblings,
4so multiple top-docked widgets need a single Vertical wrapper.
5"""
7from __future__ import annotations
9from pathlib import Path
10from typing import ClassVar
12from textual.containers import Vertical
14_CSS_FILE = Path(__file__).parent / "top_bars.tcss"
17class TopBars(Vertical):
18 """Top-edge dock wrapper that stacks children vertically."""
20 DEFAULT_CSS: ClassVar[str] = _CSS_FILE.read_text(encoding="utf-8")