prompt-toolkit / ptpython

A better Python REPL
BSD 3-Clause "New" or "Revised" License
5.2k stars 277 forks source link

creating custom color schemes #275

Open disrupted opened 5 years ago

disrupted commented 5 years ago

I was wondering if the example in https://github.com/prompt-toolkit/ptpython/blob/master/examples/ptpython_config/config.py is still up to date. specifically the part about customising the color scheme.

# Custom colorscheme for the UI. See `ptpython/layout.py` and
# `ptpython/style.py` for all possible tokens.
_custom_ui_colorscheme = {
    # Blue prompt.
    Token.Layout.Prompt:                          'bg:#eeeeff #000000 bold',

    # Make the status toolbar red.
    Token.Toolbar.Status:                         'bg:#ff0000 #000000',
}

afaict ptpython/style.py underwent some changes and doesn't utilize this structure anymore. What are the necessary steps to customize a color scheme?

mixmastamyk commented 2 years ago

This was changed. Docs could still be improved, but this bug should probably be closed.