Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
# 🥭 freshMango
```
_)
__ _ __ __
/ _|_ _ ___ ___ | |__ | \/ |__ _ _ _ __ _ ___
| _| '_/ -_)(_-< | '_ \ | |\/| / _` | ' \/ _` / _ \
|_| |_| \___)/___||_||_| |_| |_\__,_|_||_\__, \___/
|___/
```

[![CI](https://github.com/juandagalo/fresh-mango/actions/workflows/ci.yml/badge.svg)](https://github.com/juandagalo/fresh-mango/actions/workflows/ci.yml)

Expand Down
2 changes: 1 addition & 1 deletion internal/tui/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ func (a App) renderPlaceholder() string {
}

func (a App) renderStartupChecking() string {
brand := accentStyle.Bold(true).Render("freshMango")
brand := RenderLogo()
msg := dimStyle.Render("Checking system...")
block := lipgloss.JoinVertical(lipgloss.Center, brand, "", msg)

Expand Down
2 changes: 1 addition & 1 deletion internal/tui/hub.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func (h HubModel) Update(msg tea.Msg) (HubModel, tea.Cmd) {
func (h HubModel) View() string {
var sections []string

header := accentStyle.Bold(true).Render("freshMango")
header := RenderLogo()
sections = append(sections, header)
sections = append(sections, "")

Expand Down
51 changes: 51 additions & 0 deletions internal/tui/logo.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
package tui

import (
"strings"

"github.com/charmbracelet/lipgloss"
)

// ASCII art logo for freshMango.
// Line 1 contains the leaf/stem "_)" which is rendered in green;
// the remaining lines form the text and are rendered in accent/amber.
const logo = ` _)
__ _ __ __
/ _|_ _ ___ ___ | |__ | \/ |__ _ _ _ __ _ ___
| _| '_/ -_)(_-< | '_ \ | |\/| / _` + "`" + ` | ' \/ _` + "`" + ` / _ \
|_| |_| \___)/___||_||_| |_| |_\__,_|_||_\__, \___/
|___/`

// logoPlain is the raw logo without any ANSI styling.
const logoPlain = ` _)
__ _ __ __
/ _|_ _ ___ ___ | |__ | \/ |__ _ _ _ __ _ ___
| _| '_/ -_)(_-< | '_ \ | |\/| / _` + "`" + ` | ' \/ _` + "`" + ` / _ \
|_| |_| \___)/___||_||_| |_| |_\__,_|_||_\__, \___/
|___/`

// RenderLogo returns the ASCII logo with Lipgloss coloring:
// the leaf/stem on line 1 in green, the rest in accent/amber.
func RenderLogo() string {
lines := strings.Split(logo, "\n")
styled := make([]string, len(lines))

leafStyle := lipgloss.NewStyle().Foreground(colorGreen).Bold(true)
textStyle := lipgloss.NewStyle().Foreground(colorAccent).Bold(true)

for i, line := range lines {
if i == 0 {
// First line is the leaf/stem — render in green
styled[i] = leafStyle.Render(line)
} else {
styled[i] = textStyle.Render(line)
}
}

return strings.Join(styled, "\n")
}

// LogoPlain returns the plain monochrome ASCII logo (for README or fallback).
func LogoPlain() string {
return logoPlain
}
Loading