Skip to content

Commit 34c7d0f

Browse files
committed
Stop flattening to plain-text in SimpleClickable
1 parent 5c6be7f commit 34c7d0f

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

lib/Terminal/Widgets/Input/SimpleClickable.rakumod

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,9 @@ does Terminal::Widgets::Input::Labeled {
2222

2323
#| Draw content area
2424
method draw-content() {
25-
my $layout = self.layout.computed;
26-
my $x = $layout.left-correction;
27-
my $y = $layout.top-correction;
28-
29-
# XXXX: Temporary hack
30-
my $text = $.terminal.locale.plain-text(self.content-text($.label));
31-
32-
$.grid.set-span($x, $y, $text, self.current-color);
25+
my ($l, $t, $w, $h) = self.content-rect;
26+
my @spans = $.terminal.locale.render(self.content-text($.label));
27+
self.draw-line-spans($l, $t, $w, @spans);
3328
}
3429

3530
#| Handle minimal keyboard events

0 commit comments

Comments
 (0)