| 1 | package ColorTheme::Data::Dump::Color::Default256; | ||
| 2 | |||
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use parent 'ColorThemeBase::Static::FromStructColors'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 1 | our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY | |
| 7 | 1 | our $DATE = '2025-02-21'; # DATE | |
| 8 | 1 | our $DIST = 'Data-Dump-Color'; # DIST | |
| 9 | 1 | our $VERSION = '0.251'; # VERSION | |
| 10 | |||
| 11 | 12 | ▶ | sub _ansi256fg { |
|
Subroutine
_ansi256fg: called CC=1 SCAR=0.0
| |||
| 12 | 12 | my $code = shift; | |
| 13 | 12 | return {ansi_fg=>"\e[38;5;${code}m"}; | |
| 14 | } | ||
| 15 | |||
| 16 | 1 | our %THEME = ( | |
| 17 | v => 2, | ||
| 18 | items => { | ||
| 19 | Regexp => _ansi256fg(135), | ||
| 20 | undef => _ansi256fg(124), | ||
| 21 | number => _ansi256fg(27), | ||
| 22 | float => _ansi256fg(51), | ||
| 23 | string => _ansi256fg(226), | ||
| 24 | object => _ansi256fg(10), | ||
| 25 | glob => _ansi256fg(10), | ||
| 26 | key => _ansi256fg(202), | ||
| 27 | comment => _ansi256fg(34), | ||
| 28 | keyword => _ansi256fg(21), | ||
| 29 | symbol => _ansi256fg(51), | ||
| 30 | linum => _ansi256fg(10), | ||
| 31 | }, | ||
| 32 | ); | ||
| 33 | |||
| 34 | 1 | 1; | |
| 35 | # ABSTRACT: Default color theme for Data::Dump::Color (256 color) | ||
| 36 | |||
| 37 | __END__ | ||