def on_defaultTheme_changed(self, themeUUID): theme = self.application.supportManager.getBundleItem(themeUUID) scheme = ColorScheme(theme.name) # Foreground and background scheme.setBackground(theme.settings["background"]) scheme.setBackground(theme.settings["selection"], intense = True) scheme.setForeground(theme.settings["foreground"]) scheme.setForeground(theme.settings["lineHighlight"], intense = True) # Mapping scopes :) scopes = SHEME_SCOPES[:] random.shuffle(scopes) scopes = scopes[:16] for index, scope in enumerate(scopes[:8]): scheme.setColor(index, theme.getStyle(scope)["foreground"]) for index, scope in enumerate(scopes[8:]): scheme.setColor(index, theme.getStyle(scope)["foreground"], intense = True) self.tabTerminals.setColorScheme(scheme)