          """ Set global custom styles """
          gui_style = ttk.Style()
          gui_style.configure('TLabelframe.Label', foreground="#0046D5", relief=tk.SOLID)
  
      def get_scaling(self):
          """ Get the display DPI """
          dpi = self.winfo_fpixels("1i")
          scaling = dpi / 72.0
          logger.debug("dpi: %s, scaling: %s'", dpi, scaling)
          return scaling
  
      def set_geometry(self):
          """ Set GUI geometry """
          fullscreen = get_config().user_config_dict["fullscreen"]
          scaling_factor = get_config().scaling_factor
  
 
</s> remove         fullscreen = get_config().user_config_dict["fullscreen"]
        scaling_factor = get_config().scaling_factor
 </s> add         fullscreen = self._config.user_config_dict["fullscreen"]
        scaling_factor = self._config.scaling_factor </s> remove     @property
    def command_tabs(self):
        """ Return dict of command tab titles with their IDs """
        return {self.command_notebook.tab(tab_id, "text").lower(): tab_id
                for tab_id in range(0, self.command_notebook.index("end"))}
 </s> add     @staticmethod
    def _get_scaling(root):
        """ Get the display DPI.

        Returns
        -------
        float:
            The scaling factor
        """
        dpi = root.winfo_fpixels("1i")
        scaling = dpi / 72.0
        logger.debug("dpi: %s, scaling: %s'", dpi, scaling)
        return scaling

    def set_command_notebook(self, notebook):
        """ Set the command notebook to the :attr:`command_notebook` attribute
        and enable the modified callback for :attr:`project`.

        Parameters
        ----------
        notebook: :class:`lib.gui.command.CommandNotebook`
            The main command notebook for the Faceswap GUI
        """
        logger.debug("Setting commane notebook: %s", notebook)
        self._gui_objects["command_notebook"] = notebook
        self.project.set_modified_callback()

    def set_active_tab_by_name(self, name):
        """ Sets the :attr:`command_notebook` or :attr:`tools_notebook` to active based on given
        name.

        Parameters
        ----------
        name: str
            The name of the tab to set active
        """
        name = name.lower()
        if name in self._command_tabs:
            tab_id = self._command_tabs[name]
            logger.debug("Setting active tab to: (name: %s, id: %s)", name, tab_id)
            self.command_notebook.select(tab_id)
        elif name in self._tools_tabs:
            self.command_notebook.select(self._command_tabs["tools"])
            tab_id = self._tools_tabs[name]
            logger.debug("Setting active Tools tab to: (name: %s, id: %s)", name, tab_id)
            self.tools_notebook.select()
        else:
            logger.debug("Name couldn't be found. Setting to id 0: %s", name)
            self.command_notebook.select(0) </s> remove             tk.font.nametofont(font).configure(family=get_config().default_font[0],
                                               size=get_config().default_font[1])
 </s> add             tk.font.nametofont(font).configure(family=self._config.default_font[0],
                                               size=self._config.default_font[1]) </s> remove     def set_geometry(self, root):
 </s> add     def set_geometry(self): </s> remove         pos_x = root.winfo_x() + 80
        pos_y = root.winfo_y() + 80
 </s> add         pos_x = self._root.winfo_x() + 80
        pos_y = self._root.winfo_y() + 80
          """ Set global custom styles """
          gui_style = ttk.Style()
          gui_style.configure('TLabelframe.Label', foreground="#0046D5", relief=tk.SOLID)
  







      def set_geometry(self):
          """ Set GUI geometry """
          fullscreen = get_config().user_config_dict["fullscreen"]
          scaling_factor = get_config().scaling_factor
  
keep keep keep keep replace replace replace replace replace replace replace keep keep keep keep keep
 GUI Updates (#940)

* lib.gui: Update icons
* tools.cli: Add video filetype flag to mask input
* lib.gui.popup_configure: Refresh GUI on config save
* lib.gui._config: Add Icon size and load last session options
* lib.gui.control_helper - Add control modification tracking
* lib.gui - Add Projects and Last Session
- Main root title handled by projects
- Add Hotkeys
- Create projects module
- split fsw and fst filetypes
- Add last_session saving

* lib.project
- Documentation
- Ask confirm on closing unsaved project
-Fixups

* Track model folder changes
- Shuffle some globals
- Activate System Verbosity for GUI

* lib.gui.utils - Documentation and clean up
- lib.gui.custom_widgets - Create and document

* Add GUI config option to disable auto loading model stats 
scripts/gui.py