Styling¶
This page contains documentation about module classes and functions related to styling.
Default style¶
- class pcef.style.Style(name)[source]¶
Defines style options used by all pcef widgets to setup their style.
It mainly consists of a font definition, a pygments style and a series of colors used for various purposes.
A style can be serialised to a JSON file using pcef.style.toJSON() and pcef.style.fromJSON()
- activeLineColor = None¶
The active line color
- fontName = None¶
A default font
- fontSize = None¶
A default font size
- lineNbrColor = None¶
the line nbr color
- marginColor = None¶
Right margin color (used by
- panelSeparatorColor = None¶
A default Panel separator color
- panelsBackgroundColor = None¶
A default Panel background color
- pygmentsStyle = None¶
Pygments syntax highlighting style (used by SyntaxHighlighting Mode)
- searchBackgroundColor = None¶
Search results background
- searchColor = None¶
Search results foreground
- selectionBackgroundColor = None¶
The selection background color
- selectionTextColor = None¶
The selection text color
Dark style¶
Functions¶
- pcef.style.toJSON(style)[source]¶
Serialises a style to a json file
Parameters: style (pcef.style.Style) – style to serialise
- pcef.style.fromJSON(filename)[source]¶
Returns: A style instance read from a json file Parameters: filename – style json filename Return type: pcef.style.Style or None