Преглед изворни кода

The color of the links in the bottom of the page (not in tables) can be
set by the new 'bg_link', 'bg_hlink' and 'bg_vlink' options.

Morten Brix Pedersen пре 25 година
родитељ
комит
2ed5f1e7ce
3 измењених фајлова са 17 додато и 5 уклоњено
  1. 6 3
      docs/CONFIG-README
  2. 3 0
      modules/Pisg.pm
  3. 8 2
      modules/Pisg/HTMLGenerator.pm

+ 6 - 3
docs/CONFIG-README

@@ -186,9 +186,12 @@ hicell              Background color in highlighted cells
 hicell2             Background color in highlighted cells
 tdcolor             Color of text in tables
 tdtop               Top color in some tables.
-link                Color of links
-vlink               Color of visited links
-hlink               Color of hovered links
+link                Color of links in tables
+vlink               Color of visited links in tables
+hlink               Color of hovered links in tables
+bg_link                Color of links on background
+bg_vlink               Color of visited links on background
+bg_hlink               Color of hovered links on background
 headline            Border color of headlines
 rankc               Colors of 'ranks' (1,2,3,4) and active times
 hi_rankc            Highlighted ranks

+ 3 - 0
modules/Pisg.pm

@@ -133,6 +133,9 @@ sub get_default_config_settings
         link => '#0b407a',
         vlink => '#0b407a',
         hlink => '#0b407a',
+        bg_link => '#0b407a',
+        bg_vlink => '#0b407a',
+        bg_hlink => '#0b407a',
         headline => '#000000',
         rankc => '#CCCCCC',
         hi_rankc => '#AAAAAA',

+ 8 - 2
modules/Pisg/HTMLGenerator.pm

@@ -133,6 +133,12 @@ a:link { color: $self->{cfg}->{link}; }
 a:visited { color: $self->{cfg}->{vlink}; }
 a:hover { text-decoration: underline; color: $self->{cfg}->{hlink} }
 
+/* Colors for links not in td's */
+a.background { text-decoration: none }
+a.background:link { color: $self->{cfg}->{bg_link}; }
+a.background:visited { color: $self->{cfg}->{bg_vlink}; }
+a.background:hover { text-decoration: underline; color: $self->{cfg}->{bg_hlink} }
+
 body {
     background-color: $self->{cfg}->{bgcolor};
     font-family: verdana, arial, sans-serif;
@@ -222,8 +228,8 @@ sub _htmlfooter
     my $self = shift;
     print OUTPUT <<HTML;
 <span class="small">
-Stats generated by <a href="http://pisg.sourceforge.net/" title="Go to the pisg homepage">pisg</a> $self->{cfg}->{version}<br>
-pisg by <a href="http://www.wtf.dk/hp/" title="Go to the authors homepage">Morten Brix Pedersen</a> and others<br>
+Stats generated by <a href="http://pisg.sourceforge.net/" title="Go to the pisg homepage" class="background">pisg</a> $self->{cfg}->{version}<br>
+pisg by <a href="http://www.wtf.dk/hp/" title="Go to the authors homepage" class="background">Morten Brix Pedersen</a> and others<br>
 Stats generated in $self->{stats}->{processtime}
 </span>
 </div>