39 lines
774 B
Python
39 lines
774 B
Python
from textual.color import Color
|
|
|
|
|
|
def get_retro_terminal_theme():
|
|
from textual.theme import Theme
|
|
|
|
return Theme(
|
|
name="retro-terminal",
|
|
background=Color.parse("#000000"),
|
|
primary=Color.parse("#00ff00"),
|
|
secondary=Color.parse("#00aa00"),
|
|
success=Color.parse("#00ff00"),
|
|
warning=Color.parse("#ffff00"),
|
|
error=Color.parse("#ff0000"),
|
|
surface=Color.parse("#111111"),
|
|
)
|
|
|
|
|
|
RETRO_TERMINAL_CSS = """
|
|
/* Retro terminal CRT effect */
|
|
Screen {
|
|
align: center middle;
|
|
background: $background;
|
|
color: $text;
|
|
}
|
|
|
|
/* Blocky, pixelated widgets */
|
|
.widget {
|
|
border: tall $primary;
|
|
background: $surface;
|
|
width: 80%;
|
|
}
|
|
|
|
/* Monospaced font */
|
|
* {
|
|
font-family: "Courier New", monospace;
|
|
}
|
|
"""
|