          selection = self._tree.focus()
          category = selection.split("|")[0]
          config = self._configs[category]
          # Create a new config to pull through any defaults change
          new_config = ConfigParser(allow_no_value=True)
  
          if "|" in selection:
              lookup = ".".join(selection.split("|")[1:])
          else:  # Expand global out from root node
              lookup = "global"
 
</s> remove                 for option, params in conf.defaults[section].items():
                    if option == "helptext":
                        retval[key]["helptext"] = params
                        continue
 </s> add                 retval[key]["helptext"] = conf.defaults[section].helptext
                for option, params in conf.defaults[section].items.items(): </s> remove         for section, items in config.defaults.items():
            logger.debug("Adding section: '%s')", section)
            config.insert_config_section(section, items["helptext"], config=new_config)
            for item, options in items.items():
                if item == "helptext":
                    continue
                if page_only and section != lookup:
                    # Keep existing values for pages we are not updating
                    new_opt = config.get(section, item)
                    logger.debug("Retain existing value '%s' for %s",
                                 new_opt, ".".join([section, item]))
                else:
                    # Get currently selected value
                    key = category
                    if section != "global":
                        key += f"|{section.replace('.', '|')}"
                    new_opt = self._config_cpanel_dict[key]["options"][item].get()
                    logger.debug("Updating value to '%s' for %s",
                                 new_opt, ".".join([section, item]))
                helptext = config.format_help(options["helptext"], is_section=False)
                new_config.set(section, helptext)
                if options["type"] == list:  # Comma separated multi select options
                    new_opt = ", ".join(new_opt if isinstance(new_opt, list) else new_opt.split())
                new_config.set(section, item, str(new_opt))
        config.config = new_config
 </s> add         config.config = self._get_new_config(page_only, config, category, lookup) </s> remove         for section, items in self.defaults.items():
            self.insert_config_section(section, items["helptext"], new_config)
            for item, opt in items.items():
                if item == "helptext":
                    continue
                if section not in self.config.sections():
                    logger.debug("Adding new config section: '%s'", section)
                    opt_value = opt["default"]
 </s> add         for section_name, section in self.defaults.items():
            self.insert_config_section(section_name, section.helptext, new_config)
            for item, opt in section.items.items():
                if section_name not in self.config.sections():
                    logger.debug("Adding new config section: '%s'", section_name)
                    opt_value = opt.default </s> remove                     opt_value = self.config[section].get(item, opt["default"])
                self.insert_config_item(section,
                                        item,
                                        opt_value,
                                        opt,
                                        new_config)
 </s> add                     opt_value = self.config[section_name].get(item, str(opt.default))
                self._insert_config_item(section_name,
                                         item,
                                         opt_value,
                                         opt,
                                         new_config) </s> remove     def add_new_config_items(self):
 </s> add     def _add_new_config_items(self) -> None:
          selection = self._tree.focus()
          category = selection.split("|")[0]
          config = self._configs[category]
          # Create a new config to pull through any defaults change

  
          if "|" in selection:
              lookup = ".".join(selection.split("|")[1:])
          else:  # Expand global out from root node
              lookup = "global"
keep keep keep keep replace keep keep keep keep keep
 Preview - Allow mask color/opacity configuration
  - typing: lib.config
  - docs: lib.config
  - bugfix: popup_configure - keep assets on top 
lib/gui/popup_configure.py