  
      def set_styles(self):
          """ Set global custom styles """
          gui_style = ttk.Style()
          gui_style.configure('H1.TLabel',
                              font=(self._config.default_font[0],
                                    self._config.default_font[1] + 4,
                                    "bold"))
          gui_style.configure('H2.TLabel',
                              font=(self._config.default_font[0],
                                    self._config.default_font[1] + 2,
                                    "bold"))
  
          gui_style.configure("CPanel.TLabel", background="#FFFFFF")
          gui_style.configure("CPanel.TFrame", background="#FFFFFF")
          gui_style.configure("CPanel.TLabelframe", background="#FFFFFF")
          gui_style.configure('CPanel.TLabelframe.Label', background="#FFFFFF", foreground="#176087")
          gui_style.configure("CPanel.TCheckbutton", background="#FFFFFF")
          gui_style.configure("CPanel.TRadiobutton", background="#FFFFFF")
  
      def build_gui(self, rebuild=False):
          """ Build the GUI """
          logger.debug("Building GUI")
          if not rebuild:
 
</s> remove                 group_frame = ToggledFrame(opts_frame, text=group.title())
 </s> add                 group_frame = ToggledFrame(opts_frame, text=group.title(), theme=self._style) </s> remove         style = ttk.Style()
        font = get_config().default_font
        style.configure('GroupHeader.TLabel',
                        background="#176087",
                        foreground="#FFFFFF",
                        font=(font[0], font[1], "bold"))

 </s> add  </s> remove     def __init__(self, parent, *args, text="", toggle_var=None, **kwargs):
        logger.debug("Initializing %s: (parent: %s, text: %s, toggle_var: %s)",
                     self.__class__.__name__, parent, text, toggle_var)
 </s> add     def __init__(self, parent, *args, text="", theme="CPanel", toggle_var=None, **kwargs):
        logger.debug("Initializing %s: (parent: %s, text: %s, theme: %s, toggle_var: %s)",
                     self.__class__.__name__, parent, text, theme, toggle_var) </s> remove             fileopn = ttk.Button(frame, image=img, command=cmd)
 </s> add             fileopn = tk.Button(frame,
                                image=img,
                                command=cmd,
                                relief=tk.SOLID,
                                bd=1,
                                bg="#FFFFFF",
                                cursor="hand2") </s> remove         chk_frame = ttk.Frame(frame, name="chkbuttons", style="CPanel.TFrame")
        holder = AutoFillContainer(chk_frame, self.option_columns, self.option_columns)
 </s> add         chk_frame = ttk.Frame(frame, name="chkbuttons", style=f"{self._style}TFrame")
        holder = AutoFillContainer(chk_frame,
                                   self.option_columns,
                                   self.option_columns,
                                   style=self._style)
        font = self._config.default_font
        gui_style.configure('H1.TLabel', font=(font[0], font[1] + 4, "bold"))
        gui_style.configure('H2.TLabel', font=(font[0], font[1] + 2, "bold"))

        # Control and settings panel styles
        for _type in ("CPanel", "SPanel"):
            # Common control panel items
            for lbl in ["TLabel", "TFrame", "TLabelframe", "TCheckbutton", "TRadiobutton"]:
                gui_style.configure(f"CPanel.{lbl}", background="#FFFFFF")
                gui_style.configure(f"SPanel.{lbl}", background="#FFFFFF")

            # Specific items
            color = "#176087" if _type == "CPanel" else "#9B1D20"
            gui_style.configure(f"{_type}.TLabelframe.Label",
                                background="#FFFFFF",
                                foreground=color)
            gui_style.configure(f"{_type}.Groupheader.TLabel",
                                background=color,
                                foreground="#FFFFFF",
                                font=(font[0], font[1], "bold"))
  
      def set_styles(self):
          """ Set global custom styles """
          gui_style = ttk.Style()
        font = self._config.default_font
        gui_style.configure('H1.TLabel', font=(font[0], font[1] + 4, "bold"))
        gui_style.configure('H2.TLabel', font=(font[0], font[1] + 2, "bold"))

        # Control and settings panel styles
        for _type in ("CPanel", "SPanel"):
            # Common control panel items
            for lbl in ["TLabel", "TFrame", "TLabelframe", "TCheckbutton", "TRadiobutton"]:
                gui_style.configure(f"CPanel.{lbl}", background="#FFFFFF")
                gui_style.configure(f"SPanel.{lbl}", background="#FFFFFF")

            # Specific items
            color = "#176087" if _type == "CPanel" else "#9B1D20"
            gui_style.configure(f"{_type}.TLabelframe.Label",
                                background="#FFFFFF",
                                foreground=color)
            gui_style.configure(f"{_type}.Groupheader.TLabel",
                                background=color,
                                foreground="#FFFFFF",
                                font=(font[0], font[1], "bold"))
        font = self._config.default_font
        gui_style.configure('H1.TLabel', font=(font[0], font[1] + 4, "bold"))
        gui_style.configure('H2.TLabel', font=(font[0], font[1] + 2, "bold"))

        # Control and settings panel styles
        for _type in ("CPanel", "SPanel"):
            # Common control panel items
            for lbl in ["TLabel", "TFrame", "TLabelframe", "TCheckbutton", "TRadiobutton"]:
                gui_style.configure(f"CPanel.{lbl}", background="#FFFFFF")
                gui_style.configure(f"SPanel.{lbl}", background="#FFFFFF")

            # Specific items
            color = "#176087" if _type == "CPanel" else "#9B1D20"
            gui_style.configure(f"{_type}.TLabelframe.Label",
                                background="#FFFFFF",
                                foreground=color)
            gui_style.configure(f"{_type}.Groupheader.TLabel",
                                background=color,
                                foreground="#FFFFFF",
                                font=(font[0], font[1], "bold"))
        font = self._config.default_font
        gui_style.configure('H1.TLabel', font=(font[0], font[1] + 4, "bold"))
        gui_style.configure('H2.TLabel', font=(font[0], font[1] + 2, "bold"))

        # Control and settings panel styles
        for _type in ("CPanel", "SPanel"):
            # Common control panel items
            for lbl in ["TLabel", "TFrame", "TLabelframe", "TCheckbutton", "TRadiobutton"]:
                gui_style.configure(f"CPanel.{lbl}", background="#FFFFFF")
                gui_style.configure(f"SPanel.{lbl}", background="#FFFFFF")

            # Specific items
            color = "#176087" if _type == "CPanel" else "#9B1D20"
            gui_style.configure(f"{_type}.TLabelframe.Label",
                                background="#FFFFFF",
                                foreground=color)
            gui_style.configure(f"{_type}.Groupheader.TLabel",
                                background=color,
                                foreground="#FFFFFF",
                                font=(font[0], font[1], "bold"))
        font = self._config.default_font
        gui_style.configure('H1.TLabel', font=(font[0], font[1] + 4, "bold"))
        gui_style.configure('H2.TLabel', font=(font[0], font[1] + 2, "bold"))

        # Control and settings panel styles
        for _type in ("CPanel", "SPanel"):
            # Common control panel items
            for lbl in ["TLabel", "TFrame", "TLabelframe", "TCheckbutton", "TRadiobutton"]:
                gui_style.configure(f"CPanel.{lbl}", background="#FFFFFF")
                gui_style.configure(f"SPanel.{lbl}", background="#FFFFFF")

            # Specific items
            color = "#176087" if _type == "CPanel" else "#9B1D20"
            gui_style.configure(f"{_type}.TLabelframe.Label",
                                background="#FFFFFF",
                                foreground=color)
            gui_style.configure(f"{_type}.Groupheader.TLabel",
                                background=color,
                                foreground="#FFFFFF",
                                font=(font[0], font[1], "bold"))
        font = self._config.default_font
        gui_style.configure('H1.TLabel', font=(font[0], font[1] + 4, "bold"))
        gui_style.configure('H2.TLabel', font=(font[0], font[1] + 2, "bold"))

        # Control and settings panel styles
        for _type in ("CPanel", "SPanel"):
            # Common control panel items
            for lbl in ["TLabel", "TFrame", "TLabelframe", "TCheckbutton", "TRadiobutton"]:
                gui_style.configure(f"CPanel.{lbl}", background="#FFFFFF")
                gui_style.configure(f"SPanel.{lbl}", background="#FFFFFF")

            # Specific items
            color = "#176087" if _type == "CPanel" else "#9B1D20"
            gui_style.configure(f"{_type}.TLabelframe.Label",
                                background="#FFFFFF",
                                foreground=color)
            gui_style.configure(f"{_type}.Groupheader.TLabel",
                                background=color,
                                foreground="#FFFFFF",
                                font=(font[0], font[1], "bold"))
        font = self._config.default_font
        gui_style.configure('H1.TLabel', font=(font[0], font[1] + 4, "bold"))
        gui_style.configure('H2.TLabel', font=(font[0], font[1] + 2, "bold"))

        # Control and settings panel styles
        for _type in ("CPanel", "SPanel"):
            # Common control panel items
            for lbl in ["TLabel", "TFrame", "TLabelframe", "TCheckbutton", "TRadiobutton"]:
                gui_style.configure(f"CPanel.{lbl}", background="#FFFFFF")
                gui_style.configure(f"SPanel.{lbl}", background="#FFFFFF")

            # Specific items
            color = "#176087" if _type == "CPanel" else "#9B1D20"
            gui_style.configure(f"{_type}.TLabelframe.Label",
                                background="#FFFFFF",
                                foreground=color)
            gui_style.configure(f"{_type}.Groupheader.TLabel",
                                background=color,
                                foreground="#FFFFFF",
                                font=(font[0], font[1], "bold"))
        font = self._config.default_font
        gui_style.configure('H1.TLabel', font=(font[0], font[1] + 4, "bold"))
        gui_style.configure('H2.TLabel', font=(font[0], font[1] + 2, "bold"))

        # Control and settings panel styles
        for _type in ("CPanel", "SPanel"):
            # Common control panel items
            for lbl in ["TLabel", "TFrame", "TLabelframe", "TCheckbutton", "TRadiobutton"]:
                gui_style.configure(f"CPanel.{lbl}", background="#FFFFFF")
                gui_style.configure(f"SPanel.{lbl}", background="#FFFFFF")

            # Specific items
            color = "#176087" if _type == "CPanel" else "#9B1D20"
            gui_style.configure(f"{_type}.TLabelframe.Label",
                                background="#FFFFFF",
                                foreground=color)
            gui_style.configure(f"{_type}.Groupheader.TLabel",
                                background=color,
                                foreground="#FFFFFF",
                                font=(font[0], font[1], "bold"))
        font = self._config.default_font
        gui_style.configure('H1.TLabel', font=(font[0], font[1] + 4, "bold"))
        gui_style.configure('H2.TLabel', font=(font[0], font[1] + 2, "bold"))

        # Control and settings panel styles
        for _type in ("CPanel", "SPanel"):
            # Common control panel items
            for lbl in ["TLabel", "TFrame", "TLabelframe", "TCheckbutton", "TRadiobutton"]:
                gui_style.configure(f"CPanel.{lbl}", background="#FFFFFF")
                gui_style.configure(f"SPanel.{lbl}", background="#FFFFFF")

            # Specific items
            color = "#176087" if _type == "CPanel" else "#9B1D20"
            gui_style.configure(f"{_type}.TLabelframe.Label",
                                background="#FFFFFF",
                                foreground=color)
            gui_style.configure(f"{_type}.Groupheader.TLabel",
                                background=color,
                                foreground="#FFFFFF",
                                font=(font[0], font[1], "bold"))
        font = self._config.default_font
        gui_style.configure('H1.TLabel', font=(font[0], font[1] + 4, "bold"))
        gui_style.configure('H2.TLabel', font=(font[0], font[1] + 2, "bold"))

        # Control and settings panel styles
        for _type in ("CPanel", "SPanel"):
            # Common control panel items
            for lbl in ["TLabel", "TFrame", "TLabelframe", "TCheckbutton", "TRadiobutton"]:
                gui_style.configure(f"CPanel.{lbl}", background="#FFFFFF")
                gui_style.configure(f"SPanel.{lbl}", background="#FFFFFF")

            # Specific items
            color = "#176087" if _type == "CPanel" else "#9B1D20"
            gui_style.configure(f"{_type}.TLabelframe.Label",
                                background="#FFFFFF",
                                foreground=color)
            gui_style.configure(f"{_type}.Groupheader.TLabel",
                                background=color,
                                foreground="#FFFFFF",
                                font=(font[0], font[1], "bold"))
        font = self._config.default_font
        gui_style.configure('H1.TLabel', font=(font[0], font[1] + 4, "bold"))
        gui_style.configure('H2.TLabel', font=(font[0], font[1] + 2, "bold"))

        # Control and settings panel styles
        for _type in ("CPanel", "SPanel"):
            # Common control panel items
            for lbl in ["TLabel", "TFrame", "TLabelframe", "TCheckbutton", "TRadiobutton"]:
                gui_style.configure(f"CPanel.{lbl}", background="#FFFFFF")
                gui_style.configure(f"SPanel.{lbl}", background="#FFFFFF")

            # Specific items
            color = "#176087" if _type == "CPanel" else "#9B1D20"
            gui_style.configure(f"{_type}.TLabelframe.Label",
                                background="#FFFFFF",
                                foreground=color)
            gui_style.configure(f"{_type}.Groupheader.TLabel",
                                background=color,
                                foreground="#FFFFFF",
                                font=(font[0], font[1], "bold"))
        font = self._config.default_font
        gui_style.configure('H1.TLabel', font=(font[0], font[1] + 4, "bold"))
        gui_style.configure('H2.TLabel', font=(font[0], font[1] + 2, "bold"))

        # Control and settings panel styles
        for _type in ("CPanel", "SPanel"):
            # Common control panel items
            for lbl in ["TLabel", "TFrame", "TLabelframe", "TCheckbutton", "TRadiobutton"]:
                gui_style.configure(f"CPanel.{lbl}", background="#FFFFFF")
                gui_style.configure(f"SPanel.{lbl}", background="#FFFFFF")

            # Specific items
            color = "#176087" if _type == "CPanel" else "#9B1D20"
            gui_style.configure(f"{_type}.TLabelframe.Label",
                                background="#FFFFFF",
                                foreground=color)
            gui_style.configure(f"{_type}.Groupheader.TLabel",
                                background=color,
                                foreground="#FFFFFF",
                                font=(font[0], font[1], "bold"))
        font = self._config.default_font
        gui_style.configure('H1.TLabel', font=(font[0], font[1] + 4, "bold"))
        gui_style.configure('H2.TLabel', font=(font[0], font[1] + 2, "bold"))

        # Control and settings panel styles
        for _type in ("CPanel", "SPanel"):
            # Common control panel items
            for lbl in ["TLabel", "TFrame", "TLabelframe", "TCheckbutton", "TRadiobutton"]:
                gui_style.configure(f"CPanel.{lbl}", background="#FFFFFF")
                gui_style.configure(f"SPanel.{lbl}", background="#FFFFFF")

            # Specific items
            color = "#176087" if _type == "CPanel" else "#9B1D20"
            gui_style.configure(f"{_type}.TLabelframe.Label",
                                background="#FFFFFF",
                                foreground=color)
            gui_style.configure(f"{_type}.Groupheader.TLabel",
                                background=color,
                                foreground="#FFFFFF",
                                font=(font[0], font[1], "bold"))
        font = self._config.default_font
        gui_style.configure('H1.TLabel', font=(font[0], font[1] + 4, "bold"))
        gui_style.configure('H2.TLabel', font=(font[0], font[1] + 2, "bold"))

        # Control and settings panel styles
        for _type in ("CPanel", "SPanel"):
            # Common control panel items
            for lbl in ["TLabel", "TFrame", "TLabelframe", "TCheckbutton", "TRadiobutton"]:
                gui_style.configure(f"CPanel.{lbl}", background="#FFFFFF")
                gui_style.configure(f"SPanel.{lbl}", background="#FFFFFF")

            # Specific items
            color = "#176087" if _type == "CPanel" else "#9B1D20"
            gui_style.configure(f"{_type}.TLabelframe.Label",
                                background="#FFFFFF",
                                foreground=color)
            gui_style.configure(f"{_type}.Groupheader.TLabel",
                                background=color,
                                foreground="#FFFFFF",
                                font=(font[0], font[1], "bold"))
        font = self._config.default_font
        gui_style.configure('H1.TLabel', font=(font[0], font[1] + 4, "bold"))
        gui_style.configure('H2.TLabel', font=(font[0], font[1] + 2, "bold"))

        # Control and settings panel styles
        for _type in ("CPanel", "SPanel"):
            # Common control panel items
            for lbl in ["TLabel", "TFrame", "TLabelframe", "TCheckbutton", "TRadiobutton"]:
                gui_style.configure(f"CPanel.{lbl}", background="#FFFFFF")
                gui_style.configure(f"SPanel.{lbl}", background="#FFFFFF")

            # Specific items
            color = "#176087" if _type == "CPanel" else "#9B1D20"
            gui_style.configure(f"{_type}.TLabelframe.Label",
                                background="#FFFFFF",
                                foreground=color)
            gui_style.configure(f"{_type}.Groupheader.TLabel",
                                background=color,
                                foreground="#FFFFFF",
                                font=(font[0], font[1], "bold"))
        font = self._config.default_font
        gui_style.configure('H1.TLabel', font=(font[0], font[1] + 4, "bold"))
        gui_style.configure('H2.TLabel', font=(font[0], font[1] + 2, "bold"))

        # Control and settings panel styles
        for _type in ("CPanel", "SPanel"):
            # Common control panel items
            for lbl in ["TLabel", "TFrame", "TLabelframe", "TCheckbutton", "TRadiobutton"]:
                gui_style.configure(f"CPanel.{lbl}", background="#FFFFFF")
                gui_style.configure(f"SPanel.{lbl}", background="#FFFFFF")

            # Specific items
            color = "#176087" if _type == "CPanel" else "#9B1D20"
            gui_style.configure(f"{_type}.TLabelframe.Label",
                                background="#FFFFFF",
                                foreground=color)
            gui_style.configure(f"{_type}.Groupheader.TLabel",
                                background=color,
                                foreground="#FFFFFF",
                                font=(font[0], font[1], "bold"))
  
      def build_gui(self, rebuild=False):
          """ Build the GUI """
          logger.debug("Building GUI")
          if not rebuild:
keep keep keep keep replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace keep keep keep keep keep
 GUI - Minor Updates
  - Add style support to control panel
  - Theme settings to red
  - Use standard tk buttons
  - Fix some graphical glitches 
scripts/gui.py