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

1"""Vertical container docked to the screen's top edge. 

2 

3Mirrors BottomBars: Textual's ``dock: top`` does not stack siblings, 

4so multiple top-docked widgets need a single Vertical wrapper. 

5""" 

6 

7from __future__ import annotations 

8 

9from pathlib import Path 

10from typing import ClassVar 

11 

12from textual.containers import Vertical 

13 

14_CSS_FILE = Path(__file__).parent / "top_bars.tcss" 

15 

16 

17class TopBars(Vertical): 

18 """Top-edge dock wrapper that stacks children vertically.""" 

19 

20 DEFAULT_CSS: ClassVar[str] = _CSS_FILE.read_text(encoding="utf-8")