Skip to content

Commit

Permalink
modify icon with standard char
Browse files Browse the repository at this point in the history
  • Loading branch information
zulkhair committed Sep 4, 2024
1 parent 096d3c4 commit 16339e8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
4 changes: 3 additions & 1 deletion cmd/world/root/root_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ func TestExecuteDoctorCommand(t *testing.T) {
// Remove the first three characters for the example(✓ Git)
resultString := ""
if len(line) > 5 {
resultString = line[5:]
resultString = strings.ReplaceAll(line[5:], "(OK)", "")
resultString = strings.ReplaceAll(resultString, "(FAIL)", "")
resultString = strings.TrimSpace(resultString)
}
for dep := range seenDependencies {
if resultString != "" && resultString == dep {
Expand Down
2 changes: 1 addition & 1 deletion common/docker/client_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
func contextPrint(title, titleColor, subject, object string) {
titleStr := foregroundPrint(title, titleColor)
arrowStr := foregroundPrint("→", "241")
subjectStr := foregroundPrint(subject, "4")
subjectStr := foregroundPrint(subject, "5")

fmt.Printf("%s %s %s %s ", titleStr, arrowStr, subjectStr, object)
}
Expand Down
10 changes: 5 additions & 5 deletions tea/style/icon.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import "github.com/charmbracelet/lipgloss"

var (
QuestionIcon = lipgloss.NewStyle().Foreground(lipgloss.Color("251")).SetString("? ").Bold(true)
CrossIcon = lipgloss.NewStyle().Foreground(lipgloss.Color("9")).SetString(" ").Bold(true)
TickIcon = lipgloss.NewStyle().Foreground(lipgloss.Color("10")).SetString(" ").Bold(true)
TodoIcon = lipgloss.NewStyle().SetString(" ").Bold(true)
DoubleRightIcon = lipgloss.NewStyle().Foreground(lipgloss.Color("251")).SetString("» ").Bold(true)
ChevronIcon = lipgloss.NewStyle().Foreground(lipgloss.Color("251")).SetString(" ").Bold(true)
CrossIcon = lipgloss.NewStyle().Foreground(lipgloss.Color("9")).SetString("(FAIL) ").Bold(true)
TickIcon = lipgloss.NewStyle().Foreground(lipgloss.Color("10")).SetString("(OK) ").Bold(true)
TodoIcon = lipgloss.NewStyle().SetString("- ").Bold(true)
DoubleRightIcon = lipgloss.NewStyle().Foreground(lipgloss.Color("251")).SetString(">> ").Bold(true)
ChevronIcon = lipgloss.NewStyle().Foreground(lipgloss.Color("251")).SetString("> ").Bold(true)
)

0 comments on commit 16339e8

Please sign in to comment.