From 7357dc120bd5d4ecc2fbf0c2cd837952e81df67d Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Sat, 30 Nov 2024 19:28:40 +0200 Subject: [PATCH] Overhauled icons, will later make it so users can select their prefered style --- .../client/ui/core/networklist/networklist.go | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) 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) }