Skip to content

Commit

Permalink
Use Terminal ColorSet for StandardScreen hint styling
Browse files Browse the repository at this point in the history
  • Loading branch information
japhb committed Mar 2, 2024
1 parent e48eb60 commit ae9614a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/MUGS/UI/TUI/Layout/StandardScreen.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,12 @@ role MUGS::UI::TUI::Layout::HintFooter {
#| Define the initial footer layout constraints
method screen-footer-layout($builder, $max-width, $max-height) {
my ($min-w, $min-h) = self.max-wrapped-dims(@.hints);
my $colorset = self.terminal.colorset;
my $color = $colorset.current-color(%(:text, :hint));

with $builder {
# Full width, minimum height
# XXXX: Factor out other color and style settings
.plain-text(id => 'hint', color => 'italic', :wrap,
.plain-text(id => 'hint', :$color, :wrap,
style => %( :$min-w, :$min-h, :minimize-h )),
}
}
Expand Down

0 comments on commit ae9614a

Please sign in to comment.