#NEWLINE# def map_color_fields( style_settings , website_theme ) : #NEWLINE# #INDENT# color_fields_map = { #NEWLINE# #INDENT# 'page_text' : 'text_color' , #NEWLINE# 'page_links' : 'link_color' , #NEWLINE# 'top_bar_background' : 'top_bar_color' , #NEWLINE# 'top_bar_foreground' : 'top_bar_text_color' , #NEWLINE# 'footer_background' : 'footer_color' , #NEWLINE# 'footer_color' : 'footer_text_color' , #NEWLINE# #UNINDENT# } #NEWLINE# for ( from_fieldname , to_fieldname ) in color_fields_map . items ( ) : #NEWLINE# #INDENT# from_value = style_settings . get ( style_settings ) #NEWLINE# if from_value : #NEWLINE# #INDENT# website_theme . set ( to_fieldname , '#{0}' . format ( from_value ) )