| 1 | package Astro::Montenbruck::Utils::Theme::Colorless; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | use base qw/Astro::Montenbruck::Utils::Theme/; | ||
| 7 | |||
| 8 | Readonly::Hash our %SCHEME => ( | ||
| 9 | data_row_title => undef, | ||
| 10 | data_row_data => undef, | ||
| 11 | data_row_selected => undef, | ||
| 12 | table_row_title => undef, | ||
| 13 | table_row_data => undef, | ||
| 14 | table_row_error => undef, | ||
| 15 | table_col_title => undef | ||
| 16 | ); | ||
| 17 | |||
| 18 | our $VERSION = 0.01; | ||
| 19 | |||
| 20 | sub new { | ||
| 21 | my $class = shift; | ||
| 22 | $class->SUPER::new( name => 'colorless', scheme => \%SCHEME); | ||
| 23 | } | ||
| 24 | |||
| 25 | # return only the text | ||
| 26 | sub decorate { $_[1] } | ||
| 27 | |||
| 28 | 1; | ||
| 29 | |||
| 30 | |||
| 31 | =pod | ||
| 32 | |||
| 33 | =encoding UTF-8 | ||
| 34 | |||
| 35 | =head1 NAME | ||
| 36 | Astro::Montenbruck::Utils::Theme::Light - Console theme without colors. | ||
| 37 | |||
| 38 | =head1 SYNOPSIS | ||
| 39 | |||
| 40 | use Astro::Montenbruck::Utils::Theme; | ||
| 41 | |||
| 42 | my $theme = Astro::Montenbruck::Utils::Theme->create('colorless'); | ||
| 43 | |||
| 44 | |||
| 45 | =head1 DESCRIPTION | ||
| 46 | |||
| 47 | Child class of LAstro::Montenbruck::Utils::Theme> for terminals that | ||
| 48 | do not support colors. It overrides L<Astro::Montenbruck::Utils::Theme::colored> | ||
| 49 | method so that no ANSI color symbols ae included to the output. | ||
| 50 | |||
| 51 | |||
| 52 | =head1 METHODS | ||
| 53 | |||
| 54 | See he parent class L<Astro::Montenbruck::Utils::Theme>. | ||
| 55 | |||
| 56 | =head1 AUTHOR | ||
| 57 | |||
| 58 | Sergey Krushinsky, C<< <krushi at cpan.org> >> | ||
| 59 | |||
| 60 | =head1 COPYRIGHT AND LICENSE | ||
| 61 | |||
| 62 | Copyright (C) 2009-2022 by Sergey Krushinsky | ||
| 63 | |||
| 64 | This library is free software; you can redistribute it and/or modify | ||
| 65 | it under the same terms as Perl itself. | ||
| 66 | |||
| 67 | =cut |