Skip to content

creating custom color schemes #275

@disrupted

Description

@disrupted

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions