Product Documentation
Cadence SKILL Development Reference
Product Version IC23.1, June 2023

ilgSetColor

ilgSetColor( 
t_text
t_value
[ x_alpha ]
)
=> t / nil

Description

Sets a custom color for the given SKILL IDE GUI control.

Arguments

t_text

SKILL IDE GUI control name. Can be one of the following:

Step, Error, Cross, SelectPattern, MatchParent, MismatchParent, Keyword, KeywordBg, Comment, CommentBg, Number, NumberBg, String, StringBg, Text, TextBg, TextArea, Highlight1, Highlight2, Highlight3, Highlight4, Highlight5

t_value

A string representing the color name.

  • #RGB (each of R, G, and B is a single hex digit)
  • #RRGGBB
  • #RRRGGGBBB
  • #RRRRGGGGBBBB
  • A name from the list of colors defined in the list of SVG color keyword names provided by the World Wide Web Consortium. For example, "steelblue" or "gainsboro". These color names work on all platforms.

These color names are not the same as defined by Qt. GlobalColor enums, for example, green and Qt:green do not refer to the same color.

  • Transparent - Represents the absence of a color.
  • X11 only: Any valid X11 color name.

The color is invalid if name cannot be parsed.

x_alpha

A value representing the alpha color component (in range 0 - 255).

Value Returned

t

The color was successfully set.

nil

The color setting was unsuccessful.

Examples

To set the color of text in the current SKILL IDE window to “steelblue”

ilgSetColor("Text" "steelblue") 
=> t

Related Topics

SKILL IDE Functions


Return to top
 ⠀
X