Double theme
    ==================
    =     Header     =
    ==================
    = items          =
    ==================
    = footer         =
    ==================

def double(window, config):
    """Double theme
    ==================
    =     Header     =
    ==================
    = items          =
    ==================
    = footer         =
    ==================

    """
    cordx = round(config.get('cordx', 0))
    color = config.get('color', red)
    icon = config.get('icon', '=')
    width = config.get('width', window.width)
    title = config.get('header', 'Menu'.center(width - 2))
    back = config.get('footer', 'Pagina: {page:03d}/{last:03d}')
    align = config.get('align', 'left')

    term = window.term
    line = 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 + 1)

    wrapper = f'{line}\n{l_eq}{{}}\n{line}'

    header = wrapper.format(title)
    footer = wrapper.format(back)

    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, **_: f'{l_eq} {for_s(text)}',
        'selector': lambda text, **_: f'{l_eq} {underline_ns(for_s(text))}',
    }