Specifies a palette of IRC colors.
More...
Inherits QObject.
IrcPalette is used to specify the desired IRC color palette when converting IRC-style formatted messages to HTML using IrcTextFormat.
- See also
- Irc::Color, mIRC colors, SVG color keyword names
Converts a color code to a color name. If the color code is unknown, the function returns the fallback color name.
Returns the map of color names.
| void IrcPalette::setColorName |
( |
int |
color, |
|
|
const QString & |
name |
|
) |
| |
Assigns a name for color code.
The color name may be in one of these formats:
- #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. Note that these color names are not the same as defined by the Qt::GlobalColor enums, e.g. "green" and Qt::green does not refer to the same color.
- transparent - representing the absence of a color.
| void IrcPalette::setColorNames |
( |
const QMap< int, QString > & |
names | ) |
|
Sets the map of color names.
This property holds the black color name.
The default value is "black".
- Access functions:
-
- See also
- Irc::Black
This property holds the blue color name.
The default value is "blue".
- Access functions:
-
- See also
- Irc::Blue
This property holds the brown color name.
The default value is "brown".
- Access functions:
-
- See also
- Irc::Brown
This property holds the cyan color name.
The default value is "cyan".
- Access functions:
-
- See also
- Irc::Cyan
This property holds the gray color name.
The default value is "gray".
- Access functions:
-
- See also
- Irc::Gray
This property holds the green color name.
The default value is "green".
- Access functions:
-
- See also
- Irc::Green
This property holds the light blue color name.
The default value is "lightblue".
- Access functions:
-
- See also
- Irc::LightBlue
This property holds the light cyan color name.
The default value is "lightcyan".
- Access functions:
-
- See also
- Irc::LightCyan
This property holds the light gray color name.
The default value is "lightgray".
- Access functions:
-
- See also
- Irc::LightGray
This property holds the light green color name.
The default value is "lightgreen".
- Access functions:
-
- See also
- Irc::LightGreen
This property holds the orange color name.
The default value is "orange".
- Access functions:
-
- See also
- Irc::Orange
This property holds the pink color name.
The default value is "pink".
- Access functions:
-
- See also
- Irc::Pink
This property holds the purple color name.
The default value is "purple".
- Access functions:
-
- See also
- Irc::Purple
This property holds the red color name.
The default value is "red".
- Access functions:
-
- See also
- Irc::Red
This property holds the white color name.
The default value is "white".
- Access functions:
-
- See also
- Irc::White
This property holds the yellow color name.
The default value is "yellow".
- Access functions:
-
- See also
- Irc::Yellow