--no-colors: no bold & italics

Signed-off-by: Hadi <[email protected]>
This commit is contained in:
Hadi
2026-08-27 00:07:55 +02:00
parent 624a723b16
commit bdb1cac1f5
+6 -6
View File
@@ -42,19 +42,19 @@ func runSearchCLI(mode creds.Mode, apiURL, query string, noColors bool) error {
} }
func renderEntryCLI(e creds.Entry, noColors bool) string { func renderEntryCLI(e creds.Entry, noColors bool) string {
manufacturerStyle := lipgloss.NewStyle().Bold(true) manufacturerStyle := lipgloss.NewStyle()
nameStyle := lipgloss.NewStyle().Bold(true) nameStyle := lipgloss.NewStyle()
versionStyle := lipgloss.NewStyle() versionStyle := lipgloss.NewStyle()
credStyle := lipgloss.NewStyle() credStyle := lipgloss.NewStyle()
commentStyle := lipgloss.NewStyle().Italic(true) commentStyle := lipgloss.NewStyle()
tagStyle := lipgloss.NewStyle() tagStyle := lipgloss.NewStyle()
if !noColors { if !noColors {
manufacturerStyle = manufacturerStyle.Foreground(style.S.Subtle) manufacturerStyle = manufacturerStyle.Bold(true).Foreground(style.S.Subtle)
nameStyle = nameStyle.Foreground(style.S.Primary) nameStyle = nameStyle.Bold(true).Foreground(style.S.Primary)
versionStyle = versionStyle.Foreground(style.S.Subtle) versionStyle = versionStyle.Foreground(style.S.Subtle)
credStyle = credStyle.Foreground(style.S.Success) credStyle = credStyle.Foreground(style.S.Success)
commentStyle = commentStyle.Foreground(style.S.Muted) commentStyle = commentStyle.Italic(true).Foreground(style.S.Muted)
tagStyle = tagStyle.Foreground(style.S.Subtle) tagStyle = tagStyle.Foreground(style.S.Subtle)
} }