code: def validateFilepath( self ):
          
          if ( not self.isValidated() ):
              return
          
          valid = self.isValid()
          if ( not valid ):
              fg = self.invalidForeground()
              bg = self.invalidBackground()
          else:
              fg = self.validForeground()
              bg = self.validBackground()
          
          palette = self.palette()
          palette.setColor(palette.Base, bg)
          palette.setColor(palette.Text, fg)
          self._filepathEdit.setPalette(palette)
docs: Alters the color scheme based on the validation settings.