diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-08-24 14:54:10 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-08-24 14:54:10 +0000 |
commit | 36a36c5971610e853fc36a740b01ec211c5632dd (patch) | |
tree | 9eb2bcc48c859d8d6f49118749dda0e76c13c2d1 | |
parent | 71e205df91eb5c0c26e9f14c2bb212908c3e4c10 (diff) | |
download | control-center-36a36c5971610e853fc36a740b01ec211c5632dd.tar control-center-36a36c5971610e853fc36a740b01ec211c5632dd.tar.gz control-center-36a36c5971610e853fc36a740b01ec211c5632dd.tar.bz2 control-center-36a36c5971610e853fc36a740b01ec211c5632dd.tar.xz control-center-36a36c5971610e853fc36a740b01ec211c5632dd.zip |
new style with both short & long descriptions
-rwxr-xr-x | control-center | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/control-center b/control-center index 12369dbc..af4ebe13 100755 --- a/control-center +++ b/control-center @@ -63,10 +63,8 @@ $h{LOGS} ||= bool2text($class{CLASS} eq 'expert' ? 1 : 0); $h{EXPERT_WIZARD} ||= 0; $h{HEIGTH} ||= $default_heigth; $h{WIDTH} ||= $default_width; -$h{USE_LONG_DESCRIPTIONS} ||= 'yes'; my %option_values; -$option_values{use_long_dscr} = text2bool($h{USE_LONG_DESCRIPTIONS}); $option_values{show_log} = text2bool($h{LOGS}); my $theme = $h{THEME}; my $program; @@ -1392,6 +1390,7 @@ foreach (@tree) { p {text-align: $align} td {text-align: $align} h3 {text-align: $align; color: gray } + .subtitle { color: gray } tr {text-align: $align}), if_(lang::text_direction_rtl(), " a { direction: rtl; unicode-bidi: embed }"), qq( a:link {color:black; text-decoration:none } @@ -1431,7 +1430,7 @@ foreach (@tree) { map { "<TR>" . join("\n", grep { defined $_ } @$_) . "</TR>" } # "<TR>" . join("\n<TD> </TD>\n", grep { defined $_ } @$_) . "</TR>" } - group_by($option_values{use_long_dscr} ? 2 : 3, map { + group_by(2, map { my $label = $_; my $icon = $programs{$label}{icon}; @@ -1445,7 +1444,8 @@ foreach (@tree) { my $real_icon = $icon ? '<IMG SRC="' . ugtk2::_find_imgfile($icon) . '">' : ''; my @widgets = ( qq(<TD><A HREF="$label">$real_icon</A></TD>), - qq(<TD style="text-align: $align"><A HREF="$label">$programs{$label}{long_description}</A></TD>) + qq(<TD style="text-align: $align"><A HREF="$label"><DIV CLASS="subtitle">$programs{$label}{description}</DIV><br/> +$programs{$label}{long_description}</A></TD>) ); @widgets = reverse @widgets if lang::text_direction_rtl(); qq(<TD WIDTH="49%"> |