                                                 config=new_config)
              for item, options in items.items():
                  if item == "helptext":
                      continue  # helptext already written at top
                  if ((section is not None and config_section != section)
                          or config_section not in self.tk_vars):
                      # retain saved values that have not been updated
                      new_opt = self._config.get(config_section, item)
                      logger.debug("Retaining option: (item: '%s', value: '%s')", item, new_opt)
                  else:
                      new_opt = self.tk_vars[config_section][item].get()
 
</s> remove                     new_opt = self._config.get(config_section, item)
 </s> add                     new_opt = self._config.get(section_name, item) </s> remove             for item, options in items.items():
 </s> add             for item, options in sect.items.items(): </s> remove                     new_opt = self.tk_vars[config_section][item].get()
 </s> add                     new_opt = self.tk_vars[section_name][item].get() </s> remove         for config_section, items in self._config.defaults.items():
            logger.debug("Adding section: '%s')", config_section)
            self._config.insert_config_section(config_section,
                                               items["helptext"],
 </s> add         for section_name, sect in self._config.defaults.items():
            logger.debug("Adding section: '%s')", section_name)
            self._config.insert_config_section(section_name,
                                               sect.helptext, </s> remove                     self._config_dicts[config_section][item].set_initial_value(new_opt)
 </s> add                     self._config_dicts[section_name][item].set_initial_value(new_opt)
                if ((section is not None and section_name != section)
                        or section_name not in self.tk_vars):
                                                 config=new_config)
              for item, options in items.items():
                  if item == "helptext":
                      continue  # helptext already written at top
                if ((section is not None and section_name != section)
                        or section_name not in self.tk_vars):
                if ((section is not None and section_name != section)
                        or section_name not in self.tk_vars):
                      # retain saved values that have not been updated
                      new_opt = self._config.get(config_section, item)
                      logger.debug("Retaining option: (item: '%s', value: '%s')", item, new_opt)
                  else:
                      new_opt = self.tk_vars[config_section][item].get()
keep keep keep keep replace 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 
tools/preview/control_panels.py