Explorar o código

fix: minor icon tweak

adamdottv hai 9 meses
pai
achega
5406083850
Modificáronse 2 ficheiros con 5 adicións e 7 borrados
  1. 4 6
      internal/tui/components/core/status.go
  2. 1 1
      internal/tui/styles/icons.go

+ 4 - 6
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)

+ 1 - 1
internal/tui/styles/icons.go

@@ -7,7 +7,7 @@ const (
 	ErrorIcon   string = "✖"
 	WarningIcon string = "⚠"
 	InfoIcon    string = "ℹ"
-	HintIcon    string = "💡"
+	HintIcon    string = ""
 	SpinnerIcon string = "..."
 	LoadingIcon string = "⟳"
 )