mirror of
https://github.com/mark3labs/kit.git
synced 2026-06-14 03:30:26 +00:00
refactor(ui): apply subdued color to thinking block text
Wrap italic thinking content with VeryMuted foreground color for secondary visual hierarchy - less prominent than main response.
This commit is contained in:
@@ -533,9 +533,11 @@ func (s *StreamComponent) renderReasoningBlock(reasoning string) string {
|
||||
lines = lines[len(lines)-maxCollapsedLines:]
|
||||
}
|
||||
|
||||
// Main content using Italic for subdued visual distinction.
|
||||
// Main content using Italic with subdued color for visual distinction.
|
||||
content := strings.Join(lines, "\n")
|
||||
parts = append(parts, s.ty.Italic(content))
|
||||
theme := GetTheme()
|
||||
subduedStyle := lipgloss.NewStyle().Foreground(theme.VeryMuted)
|
||||
parts = append(parts, subduedStyle.Render(s.ty.Italic(content)))
|
||||
|
||||
// Duration footer without indentation.
|
||||
var duration time.Duration
|
||||
|
||||
Reference in New Issue
Block a user