code: def set_theme(self, theme):
          
          if theme in THEMES:
              self.palette = THEMES[theme]
              if self._scroll_bar:
                  # TODO: fix protected access.
                  self._scroll_bar._palette = self.palette
docs: Pick a palette from the list of supported THEMES.
  
          :param theme: The name of the theme to set.