Set both ctermfg and guifg simultaneously

 @param [String] color
   the color to use

 @return [Vic::Highlight]
   the updated highlight

 @api public
776882
def fg=(color)
      color = Color.new(color)
      @ctermfg, @guifg = color.to_cterm, color.to_gui
      self
    end
451339
def setColor( self, color ):
        
        # sets the border color as the full value
        self.setBorderColor(color)
        
        # set the highlight color as the color with a 140 % alpha
        clr = QColor(color)
        clr.setAlpha(150)
        self.setHighlightColor(clr)
        
        # set the fill color as the color with a 50 % alpha
        clr = QColor(color)
        clr.setAlpha(80)
        self.setFillColor(clr)
340705
def apply
      Logger.set_name @name if @name
      Logger.set_verbosity @verbosity if @verbosity
      Logger.set_file @file if @file
      Logger.set_format @log_format if @log_format

      if @colours.is_a? Proc
        @colours.call
      else
        ColourThemes.send @colours.to_sym
      end
    end
956144
def set_color(string, *colors)
      if colors.compact.empty?
        string
      elsif colors.all? { |color| color.is_a?(Symbol) }
        ansi_colors = colors.map { |color| lookup_color(color) }
        "#{ansi_colors.join}#{string}#{CLEAR}"
      end
    end
371101
public void setTextColor(final Color COLOR) {
        if (null == textColor) {
            _textColor = COLOR;
            fireUpdateEvent(REDRAW_EVENT);
        } else {
            textColor.set(COLOR);
        }
    }
974546
def set_key_color(self, color: Optional[Tuple[int, int, int]]) -> None:
        
        self._key_color = color
523105
def color(x, y, method)
      Kernel.raise ArgumentError, "Unknown PaintMethod: #{method}" unless PAINT_METHOD_NAMES.key?(method.to_i)
      primitive "color #{x},#{y},#{PAINT_METHOD_NAMES[method.to_i]}"
    end
476447
public void setHighlightColor(final Color COLOR) {
        if (null == highlightColor) {
            _highlightColor = COLOR;
            fireSectionEvent(UPDATE_EVENT);
        } else {
            highlightColor.set(COLOR);
        }
    }
58904
def SetColor(self, color):
        
        self.SetFillColor(color)
        self.SetLineColor(color)
        self.SetMarkerColor(color)
105620
def set_marker_color(self, color='#3ea0e4', edgecolor='k'):
        
        # TODO allow a colour set per another variable
        self._marker_color = color
        self._edge_color = edgecolor
850210
def set_color(
    fg=Color.normal,
    bg=Color.normal,
    fg_dark=False,
    bg_dark=False,
    underlined=False,
):
    
    _set_color(fg, bg, fg_dark, bg_dark, underlined)
990737
def highlight_at!(y, x)
      update_highlighter if @highlighter_tokens.nil?

      fail(HighlighterUnknownSegment, "line: #{y}") if @highlighter_tokens[@offset_y + y].nil?
      fail(HighlighterUnknownSegment, "line: #{y} char: #{x}") if @highlighter_tokens[@offset_y + y][x].nil?

      @highlighter_tokens[@offset_y + y][x]
    end
936359
def setHighlightColor( self, color ):
        
        self._highlightColor = QColor(color)
        self.setAlternateHighlightColor(self._highlightColor.darker(110))
693031
def highlight(text, options = {})
      options[:lexer] = aliases.first
      Pygments.highlight(text, options)
    end
1316927
private void doHighlight(String colorMode) throws WidgetException {
		if (!(getGUIDriver() instanceof HighlightProvider)) {
			return;
		}
		HighlightProvider highDriver = (HighlightProvider) getGUIDriver();

		if (highDriver.isHighlight()) {
			setBackgroundColor(highDriver.getHighlightColor(colorMode));
		}
	}
658817
public void setHighlightColor(final Color COLOR) {
        if (null == highlightColor) {
            _highlightColor = COLOR;
        } else {
            highlightColor.set(COLOR);
        }
    }
310896
function setColor(color) {
         var alpha = this.currentColor.glArray[3];
         this.currentColor.copy(color);
         this.currentColor.glArray[3] *= alpha;
       }