Single theme
    ===== Header =====
    = items          =
    ==================

def single(window, config):
    """Single theme
    ===== Header =====
    = items          =
    ==================

    """
    cordx = round(config.get('cordx', 0))
    color = config.get('color', red)
    icon = config.get('icon', '=')
    align = config.get('align', 'left')
    term = window.term

    width = round(config.get('width', window.width))

    title = config.get('header', ' Menu ')
    header = term.center(title, width, icon)
    header = header.split(title)
    header = color(header[0]) + title + color(header[1])

    footer = color(icon * width)

    l_eq = term.move_x(cordx) + color(icon)
    l_eq += term.move_x(cordx + width - 1) + \
        color(icon) + term.move_x(cordx + 2)

    if align == 'right':
        for_s = functools.partial(term.rjust, width=width - 4)  # *
    elif align == 'center':
        for_s = functools.partial(
            term.center, width=width - 4)  # -4 width "= text ="
    elif align == 'left':
        for_s = functools.partial(term.ljust, width=width - 4)  # *
    else:
        raise ValueError("Only align center, left, right")

    return {
        'header': header,
        'footer': footer,
        'formater': lambda text, **kwargs: l_eq + for_s(text),
        'selector': lambda text, **kwargs: l_eq + underline_ns(for_s(text)),
    }