Astro:...:Theme(3pm)

πŸ“¦ version 1.26, in alpine 3.24

πŸ’– Astro:...:Theme(3pm) πŸ’–

okay bestie, this page is from the User Contributed Perl Documentation, and it's literally all about a console theme. it's giving utility-class energy, no cap. πŸ’…

✨ NAME ✨

Astro::Montenbruck::Utils::Theme β€” console theme πŸŽ€

🌸 SYNOPSIS 🌸

use Astro::Montenbruck::Utils::Theme;

my $theme = Astro::Montenbruck::Utils::Theme->create('dark');
$theme->print_data('Some Title', 'Some text');
say $theme->decorate( sprintf('%-8s', 'Moon'), $sheme->scheme->{table_row_title} );

πŸ¦‹ DESCRIPTION πŸ¦‹

It's the base class for a console theme. That's the whole vibe. ✨

🧚 SUBROUTINES/METHODS 🧚

🫢 $self->print_data($title, $text, %options) 🫢

Prints the title and some data in a row, colon-delimited, which is suitable for tabular data, like this:

Dawn   :  07:25:56

πŸ“ Options πŸ“

  • title_width β€” width of the title column, default: 20.
  • highlited β€” if true, the data column is displayed using $self->scheme->{data_row_selected} color. Otherwise, $scheme->{data_row_data} is used. πŸ”₯
yes, it's spelled highlited in the original, bestie β€” keep it exactly like that. iykyk. πŸ’€

🌈 $self->decorate($text, $color) 🌈

In all the classes, except Astro::Montenbruck::Utils::Theme::Colorless, this colorizes the $text using Ansi color symbols. The $color argument is one of the constants defined in the mentioned package. πŸ’œ

πŸ‘‘ AUTHOR πŸ‘‘

Sergey Krushinsky, "<krushi at cpan.org>" 🫢

Copyright (C) 2009-2022 by Sergey Krushinsky

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. 🌸


and that's the whole page, bestie! sign-off time: perl v5.42.2, dated 2026-02-15, for Astro:...:Theme(3pm). slay. πŸ’–βœ¨

πŸ“¦ where this page comes from