Manpage logo

irctk-themes - irctk theming support details

NAME  DESCRIPTION  SEE ALSO  AUTHORS 

NAME

irctk-themes − irctk theming support details

DESCRIPTION

IRCTk theming support is strictly based on the tcl/tk theming engine. In general, themes for IRCTk are standard ttk themes, however, there are some things that can not be managed inside a theme definition itself, related to how the standard text widget is managed and the font colors for the various message types.

To cover those additional needs, two public APIs are provided in IRCTk gui namespace:

::gui::setchatbackground color

::gui::setfontcolor tag color

::gui::setchatbackground changes the background color for every chat window to the provided color.

::gui::setfontcolor changes the color for the given tag associated with a message type. Available message types are as follows:

default

Default text color for the application. Black by default.

mention

Message color when the user logged-in into the given network is mentioned in a message. Purple by default.

message

Color used when another user sends a message in a channel. Orange by default.

info

Messages coming from the server itself. Blue by default.

founder

Color used to indicate if a user is the founder of a channel. Red by default.

protected

Color used if a user is protected in a channel. Purple by default.

operator

Color used if a user is a channel operator. Green by default.

halfop

Color used if a user is a channel half operator.

orange by default.

voice

Color used if a user has voice rights in a channel. Blue by default.

Colors can be specified in any format supported by tcl/tk, be it in plain text, or hexadecimal notation, prefixed by an hash mark.

Those functions should be called inside the ttk theme definition that must be loaded, in order to properly change the font colors and the text backgrounds while loading the theme.

SEE ALSO

irctk(1), ttk::intro(n)

AUTHORS

Andrea Biscuola [email protected]


Updated 2026-06-01 - jenkler.se | uex.se