summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authoradamdottv <[email protected]>2025-04-30 11:33:30 -0500
committeradamdottv <[email protected]>2025-04-30 11:33:30 -0500
commit54060838505de317f28b9d011f56ab5d6772840c (patch)
tree727dfac43deaeb5d63b17dda3881d6e2bc2d8090
parent91ae9b33d37df7a53bda958d787268ef0f917ffd (diff)
downloadopencode-54060838505de317f28b9d011f56ab5d6772840c.tar.gz
opencode-54060838505de317f28b9d011f56ab5d6772840c.zip
fix: minor icon tweak
-rw-r--r--internal/tui/components/core/status.go10
-rw-r--r--internal/tui/styles/icons.go2
2 files changed, 5 insertions, 7 deletions
diff --git a/internal/tui/components/core/status.go b/internal/tui/components/core/status.go
index 312570610..75cb9571d 100644
--- a/internal/tui/components/core/status.go
+++ b/internal/tui/components/core/status.go
@@ -216,36 +216,34 @@ func (m *statusCmp) projectDiagnostics() string {
}
}
- if len(errorDiagnostics) == 0 && len(warnDiagnostics) == 0 && len(hintDiagnostics) == 0 && len(infoDiagnostics) == 0 {
+ if len(errorDiagnostics) == 0 &&
+ len(warnDiagnostics) == 0 &&
+ len(hintDiagnostics) == 0 &&
+ len(infoDiagnostics) == 0 {
return "No diagnostics"
}
diagnostics := []string{}
-
if len(errorDiagnostics) > 0 {
errStr := lipgloss.NewStyle().
- Background(t.BackgroundDarker()).
Foreground(t.Error()).
Render(fmt.Sprintf("%s %d", styles.ErrorIcon, len(errorDiagnostics)))
diagnostics = append(diagnostics, errStr)
}
if len(warnDiagnostics) > 0 {
warnStr := lipgloss.NewStyle().
- Background(t.BackgroundDarker()).
Foreground(t.Warning()).
Render(fmt.Sprintf("%s %d", styles.WarningIcon, len(warnDiagnostics)))
diagnostics = append(diagnostics, warnStr)
}
if len(hintDiagnostics) > 0 {
hintStr := lipgloss.NewStyle().
- Background(t.BackgroundDarker()).
Foreground(t.Text()).
Render(fmt.Sprintf("%s %d", styles.HintIcon, len(hintDiagnostics)))
diagnostics = append(diagnostics, hintStr)
}
if len(infoDiagnostics) > 0 {
infoStr := lipgloss.NewStyle().
- Background(t.BackgroundDarker()).
Foreground(t.Info()).
Render(fmt.Sprintf("%s %d", styles.InfoIcon, len(infoDiagnostics)))
diagnostics = append(diagnostics, infoStr)
diff --git a/internal/tui/styles/icons.go b/internal/tui/styles/icons.go
index 985465cc8..9ed9624d4 100644
--- a/internal/tui/styles/icons.go
+++ b/internal/tui/styles/icons.go
@@ -7,7 +7,7 @@ const (
ErrorIcon string = "✖"
WarningIcon string = "⚠"
InfoIcon string = "ℹ"
- HintIcon string = "💡"
+ HintIcon string = "➤"
SpinnerIcon string = "..."
LoadingIcon string = "⟳"
)