v1.17.0
Feature
Set a custom set of colors for each element rendered to the console. New dark theme:
Which seems to also work fine with VSCode:
In addition to the original light theme:
Usage
Three options:
- Use one of the predefined themes (light or dark), default is light:
python your_config --theme="dark" # or light
- Save your preferred predefined theme to avoid using the command line option:
from finalynx import DarkTheme, LightTheme
portfolio = Portfolio(...)
assistant = Assistant(..., theme=DarkTheme())
assistant.run()
- Set your own custom theme in
your_config.py
, see theLightTheme
class for references:
from finalynx import Theme
class MyTheme(Theme):
TEXT = "white"
FOLDER_COLOR="cyan"
...
portfolio = Portfolio(...)
assistant = Assistant(..., theme=MyTheme())
assistant.run()