HOME


Mini Shell 1.0
DIR: /snap/core20/current/usr/share/subiquity/subiquitycore/__pycache__/
Upload File :
Current File : //snap/core20/current/usr/share/subiquity/subiquitycore/__pycache__/palette.cpython-38.pyc
U

K��^!�@s�ddddddddgZdd	d
ddd
ddddddddddddddddddd d!gZd"d#d$d%d&d'd(d)d*d+d,d-d.d/d0d1d2d3d4d5d6d7d8gZd9Zd:d;�Zeee�Zd<S)=)�bg)�rr)�danger)��r)�good)��� )�orange)���Tr	)�neutral)r�z�)�brand)�3rr)�gray)�frr)�fg)rrr)�frame_header_fringer
r)�frame_headerrr
)�bodyrr)�done_buttonrr)�
danger_buttonrr)�other_buttonrr)�done_button focusrr)�danger_button focusrr)�other_button focusrr)�menu_buttonrr)�menu_button focusrr)�frame_buttonrr
)�frame_button focusr
r)�info_primaryrr)�
info_minorrr)�info_minor headerrr
)�
info_errorrr)�string_inputrr)�string_input focusrr)�progress_incompleterr)�progress_completerr
)Z	scrollbarrr)zscrollbar focusrr)Zverifiedrr)zverified headerrr
)zverified focusrr)r�white�black)rr+r*)rr*r+)rr*r+)rr*r+)rr*r+)rr+r*)rr+r*)rr+r*)rr*r+)rr+r*)r r+r*)r!r*r+)r"r*r+)r#r*r+)r$r+r*)r%r*r+)r&r*r+)r'r+r*)r(r*r+)r)r+r*)Zscrollbar_fgr*r+)Zscrollbar_bgr*r+)r+zdark redz
dark greenZbrownz	dark bluezdark magentaz	dark cyanz
light grayc	Csft|�dkrtd��ttdd�|D�t��}g}|D],\}}}||||}}|�|||f�q4|S)z�Return a palette to be passed to MainLoop.

    colors is a list of exactly 8 tuples (name, (r, g, b))

    styles is a list of tuples (stylename, fg_color, bg_color) where
    fg_color and bg_color are defined in 'colors'
    �z6make_palette must be passed a list of exactly 8 colorscSsg|]}|d�qS)r�)�.0�cr-r-�-/usr/share/subiquity/subiquitycore/palette.py�
<listcomp>�sz%_urwidize_palette.<locals>.<listcomp>)�len�	Exception�dict�zip�
urwid_8_names�append)	ZcolorsZstylesZ
urwid_nameZ
urwid_palette�namerrZurwid_fgZurwid_bgr-r-r0�_urwidize_paletters
�r9N)ZCOLORSZ
PALETTE_COLORZPALETTE_MONOr6r9r-r-r-r0�<module>s|��%�