diff options
| author | Kyren223 <Kyren223@proton.me> | 2024-11-30 19:28:40 +0200 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2024-11-30 19:28:40 +0200 |
| commit | 7357dc120bd5d4ecc2fbf0c2cd837952e81df67d (patch) | |
| tree | a4233b07dbacdba14b84745d98bd8320f484004d /internal/client/ui/core | |
| parent | 452040598b1960f72cfe9c6649d09884740dd8c0 (diff) | |
Overhauled icons, will later make it so users can select their prefered
style
Diffstat (limited to 'internal/client/ui/core')
| -rw-r--r-- | internal/client/ui/core/networklist/networklist.go | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/internal/client/ui/core/networklist/networklist.go b/internal/client/ui/core/networklist/networklist.go index 0f7ca7e..6548a1d 100644 --- a/internal/client/ui/core/networklist/networklist.go +++ b/internal/client/ui/core/networklist/networklist.go @@ -30,7 +30,48 @@ var ( ) ) +/* +🭊🭂██🭍🬿 +██████ +🭥🭓██🭞🭚 + +🭠🭘 🭣🭕 + +🭏🬽 🭈🭄 +*/ + func IconStyle(icon string, fg, bg lipgloss.Color) lipgloss.Style { + if true { + bgStyle := lipgloss.NewStyle().Background(bg).Foreground(colors.Background) + top := bgStyle.Render("🭠🭘 🭣🭕") + middle := lipgloss.NewStyle().Width(6).Align(lipgloss.Center). + Background(bg).Foreground(fg).Render(icon) + bgStyle2 := lipgloss.NewStyle().Foreground(bg) + bottom := bgStyle2.Render("🭥🭓██🭞🭚") + combined := lipgloss.JoinVertical(lipgloss.Left, top, middle, bottom) + return lipgloss.NewStyle().SetString(combined) + } + if true { + bgStyle := lipgloss.NewStyle().Background(bg).Foreground(colors.Background) + top := bgStyle.Render("🭠🭘 🭣🭕") + middle := lipgloss.NewStyle().Width(6).Align(lipgloss.Center). + Background(bg).Foreground(fg).Render(icon) + bottom := bgStyle.Render("🭏🬽 🭈🭄") + combined := lipgloss.JoinVertical(lipgloss.Left, top, middle, bottom) + return lipgloss.NewStyle().SetString(combined) + } + if true { + return partialIconStyle.Foreground(fg).SetString("\n" + icon) + } + if true { + bgStyle := lipgloss.NewStyle().Foreground(bg) + top := bgStyle.Render("🭊🭂██🭍🬿") + middle := lipgloss.NewStyle().Width(6).Align(lipgloss.Center). + Background(bg).Foreground(fg).Render(icon) + bottom := bgStyle.Render("🭥🭓██🭞🭚") + combined := lipgloss.JoinVertical(lipgloss.Left, top, middle, bottom) + return lipgloss.NewStyle().SetString(combined) + } return partialIconStyle.Foreground(fg).Background(bg).SetString("\n" + icon) } |
