Files
EvoScientist-Multi/EvoScientist/cli/widgets/system_message.py
T
2026-03-19 17:04:02 +01:00

20 lines
443 B
Python

"""System message widget."""
from __future__ import annotations
from rich.text import Text
from textual.widgets import Static
class SystemMessage(Static):
"""Displays a system/status message (replaces ``_append_system``)."""
DEFAULT_CSS = """
SystemMessage {
height: auto;
}
"""
def __init__(self, content: str, *, msg_style: str = "dim") -> None:
super().__init__(Text(content, style=msg_style))