IRCTK-THEMES(7)
π NAME π
irctk-themes β irctk theming support details, bestie! This is the irctk-themes(7) page from the Miscellaneous Information Manual, and we're about to get into all the theme-y goodness. β¨
π DESCRIPTION π
Okay so IRCTk theming is strictly based on the tcl/tk theming engine β no cap. In general, themes for IRCTk are standard ttk themes, but plot twist: 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 the IRCTk gui namespace:
::gui::setchatbackground color::gui::setfontcolor tag color
::gui::setchatbackground changes the background color for every chat window to the provided color. Iconic.
::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, bestie β 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. iykyk β that's the important part. π
π¦ SEE ALSO π¦
irctk(1), ttk::intro(n) β go read these too, bestie! π
πΈ AUTHORS πΈ
Andrea Biscuola a@abiscuola.com π
xoxo, signing off from the OpenBSD 7.6 edition, dated September 22, 2024 β this has been IRCTK-THEMES(7), bye bestie! π«Άπ
π¦ where this page comes from
- alpine 3.24: irctk-doc 1.1.0-r1 Β· ISC
- Copyright (c) 2024 Andrea Biscuola <a@abiscuola.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms