From 1fe64de09ab4b1572005b45beb8395fb5827e1fc Mon Sep 17 00:00:00 2001 From: Austin Schey Date: Sun, 20 Jul 2025 17:07:29 -0700 Subject: [PATCH] fix: include underline color in anstyle conversion (#2004) Underline color wasn't included in the style conversion logic. --- ratatui-core/src/style/anstyle.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/ratatui-core/src/style/anstyle.rs b/ratatui-core/src/style/anstyle.rs index 4d46c93c..e1f062ed 100644 --- a/ratatui-core/src/style/anstyle.rs +++ b/ratatui-core/src/style/anstyle.rs @@ -190,6 +190,8 @@ impl From for Style { Self { fg: style.get_fg_color().map(Color::from), bg: style.get_bg_color().map(Color::from), + #[cfg(feature = "underline-color")] + underline_color: style.get_underline_color().map(Color::from), add_modifier: style.get_effects().into(), ..Default::default() } @@ -207,6 +209,11 @@ impl From