… | |
… | |
245 | |
245 | |
246 | (my $data = $command) =~ s/\\//g; |
246 | (my $data = $command) =~ s/\\//g; |
247 | |
247 | |
248 | $tooltip =~ s/^\s+//; |
248 | $tooltip =~ s/^\s+//; |
249 | |
249 | |
250 | $tooltip = "<big>" . (CFClient::UI::Label::escape $data) . "</big>\n\n" |
250 | $tooltip = "<big>$data</big>\n\n$tooltip"; |
251 | . CFClient::UI::Label::escape $tooltip; |
|
|
252 | |
251 | |
253 | $tooltip =~ s/\s+$//; |
252 | $tooltip =~ s/\s+$//; |
254 | |
253 | |
255 | $self->{command}{$command} = [$data, $tooltip, $widget, $cb]; |
254 | $self->{command}{$command} = [$data, $tooltip, $widget, $cb]; |
256 | } |
255 | } |
… | |
… | |
359 | $self->add ($self->{vbox} = new CFClient::UI::VBox); |
358 | $self->add ($self->{vbox} = new CFClient::UI::VBox); |
360 | |
359 | |
361 | $self->{label} = [ |
360 | $self->{label} = [ |
362 | map |
361 | map |
363 | CFClient::UI::Label->new ( |
362 | CFClient::UI::Label->new ( |
364 | can_hover => 1, |
363 | can_hover => 1, |
365 | can_events => 1, |
364 | can_events => 1, |
|
|
365 | tooltip_width => 0.33, |
366 | fontsize => $_, |
366 | fontsize => $_, |
367 | ), (0.8) x 6 |
367 | ), (0.8) x 6 |
368 | ]; |
368 | ]; |
369 | |
369 | |
370 | $self->{entry} = new CFClient::UI::Entry |
370 | $self->{entry} = new CFClient::UI::Entry |
371 | connect_changed => sub { |
371 | connect_changed => sub { |