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 & LICENSE π
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
- ubuntu stonking: kgb-client 1.62-4 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms