import bpy.utils.previews, os

icons_coll = {}

icons = bpy.utils.previews.new()
icons_dir = os.path.join(os.path.dirname(__file__), "icons")
icons.load("logo", os.path.join(icons_dir, "logo.png"), 'IMAGE')

icons.load("auto_overlay", os.path.join(icons_dir, "auto_overlay.png"), 'IMAGE')
icons.load("auto_frame", os.path.join(icons_dir, "auto_frame.png"), 'IMAGE')
icons.load("bake_on_nths", os.path.join(icons_dir, "bake_on_nths.png"), 'IMAGE')
icons.load("copy_keys", os.path.join(icons_dir, "copy_keys.png"), 'IMAGE')
icons.load("copy_pose", os.path.join(icons_dir, "copy_pose.png"), 'IMAGE')
icons.load("copy_timing", os.path.join(icons_dir, "copy_timing.png"), 'IMAGE')
icons.load("create_path", os.path.join(icons_dir, "create_path.png"), 'IMAGE')
icons.load("cursor_gizmo", os.path.join(icons_dir, "cursor_gizmo.png"), 'IMAGE')
icons.load("cursor_to_selected", os.path.join(icons_dir, "cursor_to_selected.png"), 'IMAGE')
icons.load("delete_path", os.path.join(icons_dir, "delete_path.png"), 'IMAGE')
icons.load("delete_keys", os.path.join(icons_dir, "delete_keys.png"), 'IMAGE')
icons.load("delete_static_channels", os.path.join(icons_dir, "delete_static_channels.png"), 'IMAGE')
icons.load("global_offset", os.path.join(icons_dir, "global_offset.png"), 'IMAGE')
icons.load("goto_left", os.path.join(icons_dir, "goto_left.png"), 'IMAGE')
icons.load("goto_right", os.path.join(icons_dir, "goto_right.png"), 'IMAGE')
icons.load("isolate_curves", os.path.join(icons_dir, "isolate_curves.png"), 'IMAGE')
icons.load("key_all_shapes", os.path.join(icons_dir, "key_all_shapes.png"), 'IMAGE')
icons.load("key_selected", os.path.join(icons_dir, "key_selected.png"), 'IMAGE')
icons.load("key_visible", os.path.join(icons_dir, "key_visible.png"), 'IMAGE')
icons.load("key_whole_armature", os.path.join(icons_dir, "key_whole_armature.png"), 'IMAGE')
icons.load("nudge_left", os.path.join(icons_dir, "nudge_left.png"), 'IMAGE')
icons.load("nudge_right", os.path.join(icons_dir, "nudge_right.png"), 'IMAGE')
icons.load("nudge_interval", os.path.join(icons_dir, "nudge_interval.png"), 'IMAGE')
icons.load("orient_switcher", os.path.join(icons_dir, "orient_switcher.png"), 'IMAGE')
icons.load("paste_keys", os.path.join(icons_dir, "paste_keys.png"), 'IMAGE')
icons.load("paste_pose", os.path.join(icons_dir, "paste_pose.png"), 'IMAGE')
icons.load("paste_timing", os.path.join(icons_dir, "paste_timing.png"), 'IMAGE')
icons.load("range_to_selection", os.path.join(icons_dir, "range_to_selection.png"), 'IMAGE')
icons.load("range_to_markers", os.path.join(icons_dir, "range_to_markers.png"), 'IMAGE')
icons.load("retime_scene", os.path.join(icons_dir, "retime_scene.png"), 'IMAGE')
icons.load("rotation_switcher", os.path.join(icons_dir, "rotation_order_switcher.png"), 'IMAGE')
icons.load("select_children", os.path.join(icons_dir, "select_children.png"), 'IMAGE')
icons.load("select_mirror", os.path.join(icons_dir, "select_mirror.png"), 'IMAGE')
icons.load("select_parent", os.path.join(icons_dir, "select_parent.png"), 'IMAGE')
icons.load("select_siblings", os.path.join(icons_dir, "select_siblings.png"), 'IMAGE')
icons.load("selection_sets", os.path.join(icons_dir, "selection_sets.png"), 'IMAGE')
icons.load("share_active", os.path.join(icons_dir, "share_active.png"), 'IMAGE')
icons.load("share_common", os.path.join(icons_dir, "share_common.png"), 'IMAGE')
icons.load("swap_rig_mode", os.path.join(icons_dir, "swap_rig_mode.png"), 'IMAGE')
icons.load("toggle_cursor_pivot", os.path.join(icons_dir, "toggle_cursor_pivot.png"), 'IMAGE')
icons.load("view_const", os.path.join(icons_dir, "view_const.png"), 'IMAGE')
icons.load("view_loc", os.path.join(icons_dir, "view_loc.png"), 'IMAGE')
icons.load("view_props", os.path.join(icons_dir, "view_props.png"), 'IMAGE')
icons.load("view_rot", os.path.join(icons_dir, "view_rot.png"), 'IMAGE')
icons.load("view_scale", os.path.join(icons_dir, "view_scale.png"), 'IMAGE')
icons.load("view_shapes", os.path.join(icons_dir, "view_shapes.png"), 'IMAGE')

icons_coll["icons"] = icons