Is it possible to change the font colors? #174
-
Is it possible (easy) to adjust the colors? I have a dark background (black or dark blue). The dark fonts, for example, are very difficult to read on this background. I have already changed the background to a light green or ochre or similar, but then the light fonts are difficult to see again. It's mainly about the font in dark blue on a dark background. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
TD currently has two different mechanisms by which it adds color, can you show which commands and which text are a problem? I'm dark-mode all the way myself, and I use iterm3 when I on the mac and Windows Terminal on PC. If you are using the old Windows command window or powershell windows, your mileage will definitely vary and I strongly recommend you consider using Microsoft's replacement for it, Windows Terminal: If you're referring to the old coloring of the "trade run" command, that's definitely something we would like done but probably needs a volunteer to tackle if you want it done sooner rather than later. For anyone who reads this and wonders what is involved: TD now uses Python's rich library to perform console styling, including the new automatic coloring of things like links, the progress bars, etc. When you print via the rich methods - and the provide a drop-in There are two fundamental components of every TD operation: The "environment" (TradeEnv) and the database (TradeDB), and here TradeEnv (usually Its role is to know what the user/program is currently trying to do, and how - so it knows all the command line settings, if we add a config file, it will know the config, etc. So it also provides methods for output, and all td output is supposed to go through it. When I introduced the rich code, I also gave TradeEnv a concept of themes, but at the moment there's no way to select themes and there's only three themes (Base, BasicRich, RichColor). AFAIK the only code using it is TradeEnv itself and possibly a couple of pieces of the eddblink plugin. See |
Beta Was this translation helpful? Give feedback.
-
Actually, I stand corrected, you can switch between the BasicRichTheme and the RichColorTheme - it turns on the additional coloration when you use --color, but the only thing that will currently affect is certain output lines generated by TradeEnv itself. |
Beta Was this translation helpful? Give feedback.
TD currently has two different mechanisms by which it adds color, can you show which commands and which text are a problem? I'm dark-mode all the way myself, and I use iterm3 when I on the mac and Windows Terminal on PC. If you are using the old Windows command window or powershell windows, your mileage will definitely vary and I strongly recommend you consider using Microsoft's replacement for it, Windows Terminal:
https://github.com/microsoft/terminal
If you're referring to the old coloring of the "trade run" command, that's definitely something we would like done but probably needs a volunteer to tackle if you want it done sooner rather than later.
For anyone who reads this and wonders…