IRCTK-THEMES(7)

πŸ“¦ version 1.1.0, in alpine 3.24

πŸ’– 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