| 1 | package ColorTheme::Test::Static; | ||
| 2 | |||
| 3 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 2 | ▶ | use parent 'ColorThemeBase::Static::FromStructColors'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 2 | ▶ | use Color::RGB::Util 'rand_rgb_color'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 2 | our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY | |
| 10 | 2 | our $DATE = '2024-07-17'; # DATE | |
| 11 | 2 | our $DIST = 'ColorThemeBase-Static'; # DIST | |
| 12 | 2 | our $VERSION = '0.009'; # VERSION | |
| 13 | |||
| 14 | our %THEME = ( | ||
| 15 | v => 2, | ||
| 16 | summary => 'A static color theme', | ||
| 17 | items => { | ||
| 18 | color1 => 'ff0000', | ||
| 19 | color2 => '00ff00', | ||
| 20 | color3 => {bg=>'0000ff'}, | ||
| 21 | color4 => {fg=>'000000', bg=>'ffffff'}, | ||
| 22 | 1 | ▶ | color5 => sub { |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 23 | +{ | ||
| 24 | 1 | summary => 'A random foreground color', | |
| 25 | fg => rand_rgb_color(), | ||
| 26 | }; | ||
| 27 | }, | ||
| 28 | }, | ||
| 29 | 2 | ); | |
| 30 | |||
| 31 | 2 | 1; | |
| 32 | # ABSTRACT: A static color theme | ||
| 33 | |||
| 34 | __END__ | ||