@@ -92,30 +92,35 @@ sub set_icon_size{
9292 $iconsizes {$name } = " width=$w height=$h " ;
9393}
9494
95- foreach $name (split (/ / , ' up next previous contents index modules' )) {
95+ foreach $name (split (/ / , ' up next previous contents index modules blank ' )) {
9696 set_icon_size($name , 32, 32);
9797}
9898# The '_motif' is really annoying, and makes the HTML larger with no value
9999# added, so strip it off:
100100foreach $name (keys %icons ) {
101101 my $icon = $icons {$name };
102+ # Strip off the wasteful '_motif':
102103 $icon =~ s / _motif// ;
104+ # Change the greyed-out icons to be blank:
105+ $icon =~ s / [a-z]*_gr/ blank/ ;
103106 $icons {$name } = $icon ;
104107}
108+ $icons {' blank' } = ' blank.' . $IMAGE_TYPE ;
105109
106110$CUSTOM_BUTTONS = ' ' ;
111+ $BLANK_ICON = " \n <td>" . img_tag(' blank.' . $IMAGE_TYPE ) . " </td>" ;
107112
108113sub make_nav_panel{
109- (' <table width="100%" cellpadding=0 cellspacing=0><tr><td width="20%"> '
110- . ( $NEXT_TITLE ? " $NEXT " : ' ' )
111- . ( $UP_TITLE ? " $UP " : ' ' )
112- . ( $PREVIOUS_TITLE ? " $PREVIOUS " : ' ' )
113- . " </td> \n <td align=center width=\" 60 %\" ><b> $t_title </b >"
114- . " </td> \n <td align=right width= \" 20% \" >"
115- . $CONTENTS
116- . ' ' . $CUSTOM_BUTTONS
117- . ' ' . $INDEX
118- . " </td></ tr></table>\n <hr>\n "
114+ (" <table width=\ " 100%\ " cellpadding=0 cellspacing=0>\n <tr>"
115+ . " \n <td> $NEXT </td> "
116+ . " \n <td> $UP </td> "
117+ . " \n <td> $PREVIOUS </td> "
118+ . " \n <td align=center bgcolor= \" #99CCFF \" width=\" 100 %\" >"
119+ . " \n <b> $t_title </b></td >"
120+ . ( $CONTENTS ? " \n <td> $CONTENTS </td> " : $BLANK_ICON )
121+ . " \n <td> $CUSTOM_BUTTONS </td> " # module index
122+ . ( $INDEX ? " \n <td> $INDEX </td> " : $BLANK_ICON )
123+ . " \n </ tr></table><hr>\n "
119124 . ($NEXT_TITLE ? " <b>Next:</b> $NEXT_TITLE \n " : ' ' )
120125 . ($UP_TITLE ? " <b>Up:</b> $UP_TITLE \n " : ' ' )
121126 . ($PREVIOUS_TITLE ? " <b>Previous:</b> $PREVIOUS_TITLE \n " : ' ' ));
@@ -176,7 +181,7 @@ sub img_tag {
176181 $alt = join (' |' , ' up' , ' next_group' , ' previous_group'
177182 , ' next' , ' previous' , ' change_begin_right' , ' change_begin'
178183 , ' change_end_right' , ' change_end' , ' change_delete_right'
179- , ' change_delete' , ' contents' , ' index' , ' modules' );
184+ , ' change_delete' , ' contents' , ' index' , ' modules' , ' blank ' );
180185
181186 if ($icon =~ / (gif|png)$ / ) {
182187 $used_icons {$icon } = 1;
@@ -380,6 +385,7 @@ sub add_bbl_and_idx_dummy_commands {
380385 . img_tag(' modules.' .$IMAGE_TYPE ) . " </a>" );
381386 }
382387 else {
388+ $CUSTOM_BUTTONS .= img_tag(' blank.' . $IMAGE_TYPE );
383389 $global {' max_id' } = $id ; # not sure why....
384390 s / ([\\ ]begin\s *$O\d +$C\s *theindex)/ \\ textohtmlindex $1 / o ;
385391 s / [\\ ]printindex/ \\ textohtmlindex / o ;
@@ -444,7 +450,7 @@ sub protect_useritems {
444450}
445451
446452# This changes the markup used for {verbatim} environments, and is the
447- # best way I've found that ensures the <dl> goes one the outside of the
453+ # best way I've found that ensures the <dl> goes on the outside of the
448454# <pre>...</pre>.
449455#
450456# Note that this *must* be done in the init file, not the python.perl
0 commit comments