Set color scheme of the console (foreground and background).
555212
def set_color_scheme(self, foreground_color, background_color):
        """"""
        self.ansi_handler.set_color_scheme(foreground_color, background_color)

        background_color = QColor(background_color)
        foreground_color = QColor(foreground_color)

        self.set_palette(background=background_color,
                         foreground=foreground_color)

        self.set_pythonshell_font()
797233
public void setBackground(Color color) {
		predraw();
		GL.glClearColor(color.r, color.g, color.b, color.a);
		postdraw();
	}
264302
function initColor() {
  chalk.enabled = config.color.enable && chalk.enabled;
  chalk.init();
  chalk.setTheme(config.color.theme);
}
600457
def set_bracket_matcher_color_scheme(self, color_scheme):
        """"""
        bsh = sh.BaseSH(parent=self, color_scheme=color_scheme)
        mpcolor = bsh.get_matched_p_color()
        self._bracket_matcher.format.setBackground(mpcolor)
45291
def set_colors(self, text='black', background='white'):
        
        if self._multiline: self._widget.setStyleSheet("QTextEdit {background-color: "+str(background)+"; color: "+str(text)+"}")
        else:               self._widget.setStyleSheet("QLineEdit {background-color: "+str(background)+"; color: "+str(text)+"}")
1184696
def set_textcolor(self, color):
        """"""
        self.textcolor = color
        self.relabel()
        if callable(self.theme_color_callback):
            self.theme_color_callback(color, 'text')
888969
def foreground_color(background_color)
      if color = (Color::RGB.from_html(background_color) rescue false) || color = Color::CSS[background_color]
        color.brightness > 0.5 ? "black" : "white"
      else
        "black"
      end
    end
594090
def _resolve_color(self, color):
        """"""
        # TODO: Does curses automatically exchange red and blue and cyan and
        # yellow when a terminal supports setf/setb rather than setaf/setab?
        # I'll be blasted if I can find any documentation. The following
        # assumes it does.
        color_cap = (self._background_color if 'on_' in color else
                     self._foreground_color)
        # curses constants go up to only 7, so add an offset to get at the
        # bright colors at 8-15:
        offset = 8 if 'bright_' in color else 0
        base_color = color.rsplit('_', 1)[-1]
        return self._formatting_string(
            color_cap(getattr(curses, 'COLOR_' + base_color.upper()) + offset))
315275
def set_bgcolor(self, color):
        """"""
        self.bgcolor = color
        for ax in self.canvas.figure.get_axes():
            if matplotlib.__version__ < '2.0':
                ax.set_axis_bgcolor(color)
            else:
                ax.set_facecolor(color)
        if callable(self.theme_color_callback):
            self.theme_color_callback(color, 'bg')
442346
def set_color_scheme(name, color_scheme, replace=True):
    """"""
    section = "appearance"
    names = CONF.get("appearance", "names", [])
    for key in sh.COLOR_SCHEME_KEYS:
        option = "%s/%s" % (name, key)
        value = CONF.get(section, option, default=None)
        if value is None or replace or name not in names:
            CONF.set(section, option, color_scheme[key])
    names.append(to_text_string(name))
    CONF.set(section, "names", sorted(list(set(names))))
292120
public void configureColor(AbstractButton button) {
        Assert.notNull(button, "button");
        if (foreground != null) {
        	button.setForeground(foreground);
        }
        if (background != null) {
        	button.setBackground(background);
        }
    }
224360
def set_color_scheme(self, color_scheme, reset=True):
        """"""
        # Needed to handle not initialized kernel_client
        # See issue 6996
        try:
            self.shellwidget.set_color_scheme(color_scheme, reset)
        except AttributeError:
            pass
701536
public void setForeground(Color foreground) {
		super.setForeground(foreground);

		if (days != null) {
			for (int i = 7; i < 49; i++) {
				days[i].setForeground(foreground);
			}

			drawDays();
		}
	}
228777
def set(cls, color):
        
        sys.stdout.write(cls.colors.get(color, cls.colors['RESET']))
1058302
def bk_yellow(cls):
        ""
        wAttributes = cls._get_text_attributes()
        wAttributes &= ~win32.BACKGROUND_MASK
        wAttributes |=  win32.BACKGROUND_YELLOW
        cls._set_text_attributes(wAttributes)
789834
def set_color(self, fg=None, bg=None, intensify=False, target=sys.stdout):
        """"""
        raise NotImplementedError
280935
def _setColors(self, colors, doc, xref):
        """"""
        return _fitz.Link__setColors(self, colors, doc, xref)