Skip to content

Commit e896e6a

Browse files
committed
Fix SimpleClickable color lost in 34c7d0f
1 parent cc64039 commit e896e6a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/Terminal/Widgets/Input/SimpleClickable.rakumod

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ use Terminal::Widgets::Events;
44
use Terminal::Widgets::Input;
55
use Terminal::Widgets::Input::Labeled;
66
use Terminal::Widgets::Widget;
7+
use Terminal::Widgets::TextContent;
78

89

910
#| Base for labeled input widgets that can only be clicked/pressed/selected
@@ -23,7 +24,9 @@ does Terminal::Widgets::Input::Labeled {
2324
#| Draw content area
2425
method draw-content() {
2526
my ($l, $t, $w, $h) = self.content-rect;
26-
my @spans = $.terminal.locale.render(self.content-text($.label));
27+
my $tree = span-tree(color => self.current-color,
28+
self.content-text($.label));
29+
my @spans = $.terminal.locale.render($tree);
2730
self.draw-line-spans($l, $t, $w, @spans);
2831
}
2932

0 commit comments

Comments
 (0)