App::K...Painter(3pm)

πŸ’– App::KGB::Painter πŸ’–

okay so bestie, welcome to App::KGB::Painter β€” she's a Perl module, she lives in the user-contributed Perl docs, and her whole entire job is making KGB notifications look cute. ✨


πŸŽ€ NAME πŸŽ€

App::KGB::Painter β€” it adds color to KGB notifications. that's it. that's the gig. πŸ’…


🌸 DESCRIPTION 🌸

App::KGB::Painter is a simple class that encapsulates the coloring of KGB messages. lowkey she does one thing and she does it, no cap. πŸ¦‹


🧚 CONSTRUCTOR 🧚

✨ new ✨

my $p = App::KGB::Painter->new({ color_codes => { ... }, item_colors => { ... } } );

so when you call new, you hand her a hashref with two keys and she's like "periodt, I got you":

  • color_codes β€” a hash where the keys are the special symbols that IRC clients interpret as coloring commands. iykyk. 🌈
  • item_colors β€” another hash, this one describing which colors get applied to which different parts of the messages. the vibe check for your palette. 🎨

πŸ‘‘ METHODS πŸ‘‘

πŸ’œ colorize category text

Applies the colors of the style category to the given text. that's the whole thing. she takes the category, she takes the text, and she makes the text match the category's color situation. iconic. ✨

πŸ’– colorize_change change

Given a change, she applies colors to its files depending on the type of the change β€” which can be:

  • update
  • addition
  • deletion
  • property change

each type gets its own glow-up, so your eyes can tell what's happening without having to actually read. obsessed. 🫢


Copyright (c) 2013, 2018, Damyan Ivanov dmn@debian.org.

This module is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. (yes, lowercase manpage voice is also screaming this, it's important fr fr 😭)

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

πŸ’€ bestie, all caps in a license is not aesthetic but it IS load-bearing, so we keep it.

and that's the whole page!! πŸŽ€ this one came to you courtesy of perl v5.40.1, dated 2026-07-10 β€” mwah, take care of her, she just makes things pretty. πŸ’…βœ¨

πŸ“¦ where this page comes from