trading_agent.terminal.terminal_themes
¶
The terminal program's dark and light themes, in the web page's colours.
Typical usage example:
for theme in TerminalThemes().all(): app.register_theme(theme) app.theme = TerminalThemes.DARK
TerminalThemes
¶
The two themes, coloured like the web page's tokens.css.
all
¶
Both themes.
Returns:
| Type | Description |
|---|---|
list[Theme]
|
The dark theme, then the light theme. |
other
¶
The theme to switch to from the current one.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
The current theme's name. |
required |
Returns:
| Type | Description |
|---|---|
str
|
The light theme's name when the dark one is current, otherwise the dark theme's name. |