Explorar el Código

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 hace 25 años
padre
commit
2ed5f1e7ce
Se han modificado 3 ficheros con 17 adiciones y 5 borrados
  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
 hicell2             Background color in highlighted cells
 tdcolor             Color of text in tables
 tdcolor             Color of text in tables
 tdtop               Top color in some 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
 headline            Border color of headlines
 rankc               Colors of 'ranks' (1,2,3,4) and active times
 rankc               Colors of 'ranks' (1,2,3,4) and active times
 hi_rankc            Highlighted ranks
 hi_rankc            Highlighted ranks

+ 3 - 0
modules/Pisg.pm

@@ -133,6 +133,9 @@ sub get_default_config_settings
         link => '#0b407a',
         link => '#0b407a',
         vlink => '#0b407a',
         vlink => '#0b407a',
         hlink => '#0b407a',
         hlink => '#0b407a',
+        bg_link => '#0b407a',
+        bg_vlink => '#0b407a',
+        bg_hlink => '#0b407a',
         headline => '#000000',
         headline => '#000000',
         rankc => '#CCCCCC',
         rankc => '#CCCCCC',
         hi_rankc => '#AAAAAA',
         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:visited { color: $self->{cfg}->{vlink}; }
 a:hover { text-decoration: underline; color: $self->{cfg}->{hlink} }
 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 {
 body {
     background-color: $self->{cfg}->{bgcolor};
     background-color: $self->{cfg}->{bgcolor};
     font-family: verdana, arial, sans-serif;
     font-family: verdana, arial, sans-serif;
@@ -222,8 +228,8 @@ sub _htmlfooter
     my $self = shift;
     my $self = shift;
     print OUTPUT <<HTML;
     print OUTPUT <<HTML;
 <span class="small">
 <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}
 Stats generated in $self->{stats}->{processtime}
 </span>
 </span>
 </div>
 </div>