awsc.config.scheme.Scheme
- class awsc.config.scheme.Scheme(config)
Color scheme holder class.
- Attributes:
- configawsc.config.config.Configuration
The parent configuration object instance.
- style_filepathlib.Path
The path to the color scheme yaml file.
- styledict
Holds the color scheme and border style. Refer to the contents of style_file for more information on structure.
Methods
backup_and_reset
()Restores the color scheme to default, creating a backup in the process.
create_default_config
()Creates the default first time style scheme, if style.yaml doesn't exist.
parse_config
()Parses the scheme configuration file.
- __init__(config)
Initializes a Scheme object.
- Parameters:
- configawsc.config.config.Configuration
The parent configuration object instance.
Methods
__init__
(config)Initializes a Scheme object.
backup_and_reset
()Restores the color scheme to default, creating a backup in the process.
create_default_config
()Creates the default first time style scheme, if style.yaml doesn't exist.
parse_config
()Parses the scheme configuration file.