MadeInPierre / finalynx

A minimalistic companion (CLI & web) to organize your investment portfolio, simulate its future, and reach your life goals.
https://finalynx.readthedocs.io
GNU General Public License v3.0
64 stars 13 forks source link

feat(console): add option to change the console render theme #115

Closed MadeInPierre closed 1 year ago

MadeInPierre commented 1 year ago

Description

Set a custom set of colors for each element rendered to the console. New dark theme:

In addition to the original light theme:

And seems alright with VSCode:

Actions

Usage

Three options:

  1. Use one of the predefined themes (light or dark), default is light:

    python your_config --theme="dark"  # or light
  2. 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()

Steps

MadeInPierre commented 1 year ago

@sebfar9172 @nmathey @yovanoc should be useful :crossed_fingers:

sebfar9172 commented 1 year ago

I try it tomorrow

sebfar9172 commented 1 year ago

Very good thanks for the work