36 lines
922 B
Python
36 lines
922 B
Python
from textual.color import Color
|
|
from textual.theme import Theme
|
|
|
|
|
|
def get_amber_terminal_theme():
|
|
"""Amber CRT theme with compensated brightness for blending."""
|
|
return Theme(
|
|
name="amber-terminal",
|
|
background=Color.parse("#000000"), # pure black
|
|
primary=Color.parse("#ffb733"), # bright amber
|
|
secondary=Color.parse("#e69500"), # strong amber
|
|
success=Color.parse("#ffb733"),
|
|
warning=Color.parse("#ffff66"),
|
|
error=Color.parse("#ff3300"),
|
|
surface=Color.parse("#3a1f00"), # brighter brown for blending
|
|
)
|
|
|
|
|
|
AMBER_TERMINAL_CSS = """
|
|
Screen {
|
|
align: center middle;
|
|
background: #000000; /* force black */
|
|
color: #ffb733; /* force amber text */
|
|
}
|
|
|
|
.widget {
|
|
border: tall #ffb733; /* force amber border */
|
|
background: #3a1f00; /* compensated surface */
|
|
width: 80%;
|
|
}
|
|
|
|
* {
|
|
font-family: "Courier New", monospace;
|
|
}
|
|
"""
|