# -*- coding: utf-8 -*-

from . import xls


# pattern: pattern solid, fore_colour
COLORS = [
    [("aqua", "pattern: pattern solid, fore_colour aqua"), ],
    [("black", "pattern: pattern solid, fore_colour black"), ],
    [("blue", "pattern: pattern solid, fore_colour blue"), ],
    [("blue_gray", "pattern: pattern solid, fore_colour blue_gray"), ],
    [("bright_green", "pattern: pattern solid, fore_colour bright_green"), ],
    [("brown", "pattern: pattern solid, fore_colour brown"), ],
    [("coral", "pattern: pattern solid, fore_colour coral"), ],
    [("cyan_ega", "pattern: pattern solid, fore_colour cyan_ega"), ],
    [("dark_blue", "pattern: pattern solid, fore_colour dark_blue"), ],
    [("dark_blue_ega", "pattern: pattern solid, fore_colour dark_blue_ega"), ],
    [("dark_green", "pattern: pattern solid, fore_colour dark_green"), ],
    [("dark_green_ega", "pattern: pattern solid, fore_colour dark_green_ega"), ],
    [("dark_purple", "pattern: pattern solid, fore_colour dark_purple"), ],
    [("dark_red", "pattern: pattern solid, fore_colour dark_red"), ],
    [("dark_red_ega", "pattern: pattern solid, fore_colour dark_red_ega"), ],
    [("dark_teal", "pattern: pattern solid, fore_colour dark_teal"), ],
    [("dark_yellow", "pattern: pattern solid, fore_colour dark_yellow"), ],
    [("gold", "pattern: pattern solid, fore_colour gold"), ],
    [("gray_ega", "pattern: pattern solid, fore_colour gray_ega"), ],
    [("gray25", "pattern: pattern solid, fore_colour gray25"), ],
    [("gray40", "pattern: pattern solid, fore_colour gray40"), ],
    [("gray50", "pattern: pattern solid, fore_colour gray50"), ],
    [("gray80", "pattern: pattern solid, fore_colour gray80"), ],
    [("green", "pattern: pattern solid, fore_colour green"), ],
    [("ice_blue", "pattern: pattern solid, fore_colour ice_blue"), ],
    [("indigo", "pattern: pattern solid, fore_colour indigo"), ],
    [("ivory", "pattern: pattern solid, fore_colour ivory"), ],
    [("lavender", "pattern: pattern solid, fore_colour lavender"), ],
    [("light_blue", "pattern: pattern solid, fore_colour light_blue"), ],
    [("light_green", "pattern: pattern solid, fore_colour light_green"), ],
    [("light_orange", "pattern: pattern solid, fore_colour light_orange"), ],
    [("light_turquoise", "pattern: pattern solid, fore_colour light_turquoise"), ],
    [("light_yellow", "pattern: pattern solid, fore_colour light_yellow"), ],
    [("lime", "pattern: pattern solid, fore_colour lime"), ],
    [("magenta_ega", "pattern: pattern solid, fore_colour magenta_ega"), ],
    [("ocean_blue", "pattern: pattern solid, fore_colour ocean_blue"), ],
    [("olive_ega", "pattern: pattern solid, fore_colour olive_ega"), ],
    [("olive_green", "pattern: pattern solid, fore_colour olive_green"), ],
    [("orange", "pattern: pattern solid, fore_colour orange"), ],
    [("pale_blue", "pattern: pattern solid, fore_colour pale_blue"), ],
    [("periwinkle", "pattern: pattern solid, fore_colour periwinkle"), ],
    [("pink", "pattern: pattern solid, fore_colour pink"), ],
    [("plum", "pattern: pattern solid, fore_colour plum"), ],
    [("purple_ega", "pattern: pattern solid, fore_colour purple_ega"), ],
    [("red", "pattern: pattern solid, fore_colour red"), ],
    [("rose", "pattern: pattern solid, fore_colour rose"), ],
    [("sea_green", "pattern: pattern solid, fore_colour sea_green"), ],
    [("silver_ega", "pattern: pattern solid, fore_colour silver_ega"), ],
    [("sky_blue", "pattern: pattern solid, fore_colour sky_blue"), ],
    [("tan", "pattern: pattern solid, fore_colour tan"), ],
    [("teal", "pattern: pattern solid, fore_colour teal"), ],
    [("teal_ega", "pattern: pattern solid, fore_colour teal_ega"), ],
    [("turquoise", "pattern: pattern solid, fore_colour turquoise"), ],
    [("violet", "pattern: pattern solid, fore_colour violet"), ],
    [("white", "pattern: pattern solid, fore_colour white"), ],
    [("yellow", "pattern: pattern solid, fore_colour yellow"), ]
]


def main():
    xls_file = open("style_xlwt.xls", "w")
    xls_writer = xls.XLSWriter(xls_file)

    name = xls_writer.add_sheet("colors")

    xls_writer.writerows_with_style_for_elem(COLORS, name)

    xls_writer.save()
    xls_file.close()


if __name__ == "__main__":
    main()
