              img_args = ((16, 16), backgrounds[state])
              for dir_ in ("up", "down"):
                  images[f"img_{dir_}_{state}"] = self._images.get_image(
                      *img_args,
                      foreground=foregrounds[state],
                      pattern="arrow",
                      direction=dir_,
                      thickness=4,
                      border_width=1,
                      border_color=borders[state])
 
</s> remove             img_args = ((16, 16), backgrounds[state])
 </s> add             img_args = ((16, 16), theme["background"][idx]) </s> remove                     border_color=borders[state])
            images[f"img_thumb_{state}"] = self._images.get_image(*img_args,
                                                                  border_width=1,
                                                                  border_color=borders[state])
 </s> add                     border_color=theme["border"][idx])
            images[f"img_thumb_{state}"] = self._images.get_image(
                *img_args,
                border_width=1,
                border_color=theme["border"][idx]) </s> remove         backgrounds = dict(normal=theme["control_color"],
                           disabled=theme["control_disabled"],
                           active=theme["control_active"])
        foregrounds = dict(normal=theme["control_disabled"],
                           disabled=theme["control_color"],
                           active=theme["control_disabled"])
        borders = dict(normal=theme["header_color"],
                       disabled=theme["control_color"],
                       active=theme["header_color"])

        for state in ("normal", "disabled", "active"):
 </s> add         for idx, state in enumerate(("normal", "disabled", "active")):
                    foreground=theme["foreground"][idx],
              img_args = ((16, 16), backgrounds[state])
              for dir_ in ("up", "down"):
                  images[f"img_{dir_}_{state}"] = self._images.get_image(
                      *img_args,
                    foreground=theme["foreground"][idx],
                      pattern="arrow",
                      direction=dir_,
                      thickness=4,
                      border_width=1,
                      border_color=borders[state])
keep keep keep keep replace keep keep keep keep keep
 GUI - Add theme support to console 
lib/gui/utils.py