From ae9614a6acd8699ea5ff1955f4c0319a68907709 Mon Sep 17 00:00:00 2001 From: Geoffrey Broadwell Date: Sat, 2 Mar 2024 14:04:02 -0800 Subject: [PATCH] Use Terminal ColorSet for StandardScreen hint styling --- lib/MUGS/UI/TUI/Layout/StandardScreen.rakumod | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/MUGS/UI/TUI/Layout/StandardScreen.rakumod b/lib/MUGS/UI/TUI/Layout/StandardScreen.rakumod index 4722e7d..41e8215 100644 --- a/lib/MUGS/UI/TUI/Layout/StandardScreen.rakumod +++ b/lib/MUGS/UI/TUI/Layout/StandardScreen.rakumod @@ -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 )), } }