Skip to content

v1.17.0

Compare
Choose a tag to compare
@github-actions github-actions released this 30 May 16:45
· 84 commits to main since this release

Feature

  • console: Add support for light/dark/custom console themes (#115) (7722e29)

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:

  1. Use one of the predefined themes (light or dark), default is light:
python your_config --theme="dark"  # or light
  1. 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()
  1. Set your own custom theme in your_config.py, see the LightTheme class for references:
from finalynx import Theme

class MyTheme(Theme):
    TEXT = "white"
    FOLDER_COLOR="cyan"
    ...

portfolio = Portfolio(...)
assistant = Assistant(..., theme=MyTheme())
assistant.run()