2 # Save options for report colour styling
4 require './sarg-lib.pl';
7 $config_prefix = "style_";
8 &error_setup($text{'style_err'});
11 &save_language($conf, "language");
12 &save_language($conf, "charset");
13 &save_opt_textbox($conf, "title", \&check_title);
14 &save_opt_textbox($conf, "title_color", \&check_colour);
15 &save_opt_textbox($conf, "font_face", \&check_font);
16 &save_opt_textbox($conf, "header_color", \&check_colour);
17 &save_opt_textbox($conf, "header_bgcolor", \&check_colour);
18 &save_opt_textbox($conf, "header_font_size", \&check_fontsize);
19 &save_opt_textbox($conf, "text_color", \&check_colour);
20 &save_opt_textbox($conf, "text_bgcolor", \&check_colour);
22 &save_opt_textbox($conf, "logo_image");
23 &save_opt_textbox($conf, "image_size", \&check_size);
24 &save_opt_textbox($conf, "logo_text");
25 &save_opt_textbox($conf, "logo_text_color", \&check_colour);
27 &save_opt_textbox($conf, "background_image");
28 &save_opt_textbox($conf, "background_color", \&check_colour);
37 return $_[0] =~ /\S/ ? undef : $text{'style_etitle'};
42 return $_[0] =~ /^\S+$/ ? undef : $text{'style_ecolour'};
47 return $_[0] =~ /^\S+$/ ? undef : $text{'style_efont'};
52 return $_[0] =~ /^\-?\d+$/ ? undef : $text{'style_efontsize'};
57 return $_[0] =~ /^\d+\s+\d+$/ ? undef : $text{'style_esize'};