def apply(self, **config):
    if ((config is None) or (len(config) < 1)):
        raise ConfigError('No options provided')
    actions = {'theme': self.change_theme, 'font': self.change_font, 'size': self.change_font_size, 'opacity': self.change_opacity, 'padding': self.change_padding, 'offset': self.change_font_offset, 'list': self.list, 'print': self.print}
    errors_found = 0
    for (param, action) in actions.items():
        if (param in config):
            try:
                action(config[param])
            except ConfigError as e:
                log.err(e)
                errors_found += 1
    if (errors_found > 0):
        raise ConfigError(f'''
{errors_found} error(s) found''')
def apply(self, **config):
    if ((config is None) or (len(config) < 1)):
        raise ConfigError('No options provided')
    actions = {'theme': self.change_theme, 'font': self.change_font, 'size': self.change_font_size, 'opacity': self.change_opacity, 'padding': self.change_padding, 'offset': self.change_font_offset, 'list': self.list, 'print': self.print}
    errors_found = 0
    for (param, action) in actions.items():
        if (param in config):
            try:
                action(config[param])
            except ConfigError as e:
                log.err(e)
                errors_found += 1
    if (errors_found > 0):
        raise ConfigError(f'
{errors_found} error(s) found')