summaryrefslogtreecommitdiff
path: root/internal/client/ui/core/networkupdate
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2025-01-22 19:16:51 +0200
committerKyren223 <Kyren223@proton.me>2025-01-22 19:16:51 +0200
commit8702aaac955a6131e7ef7b3827c652b4cd4a7f26 (patch)
tree92a99a2bcfba4ec4b9dd8630125805de630496da /internal/client/ui/core/networkupdate
parent7e0bb07d61b656fedc1ed42b07b4e47765ffb6cf (diff)
Each section in the client (network/frequency/member/chat) now has a
different background color, similar to how discord has it
Diffstat (limited to 'internal/client/ui/core/networkupdate')
-rw-r--r--internal/client/ui/core/networkupdate/networkupdate.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/client/ui/core/networkupdate/networkupdate.go b/internal/client/ui/core/networkupdate/networkupdate.go
index 9bea5ff..d7df00a 100644
--- a/internal/client/ui/core/networkupdate/networkupdate.go
+++ b/internal/client/ui/core/networkupdate/networkupdate.go
@@ -8,8 +8,8 @@ import (
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"
"github.com/kyren223/eko/internal/client/gateway"
+ "github.com/kyren223/eko/internal/client/ui"
"github.com/kyren223/eko/internal/client/ui/colors"
- "github.com/kyren223/eko/internal/client/ui/core/networklist"
"github.com/kyren223/eko/internal/client/ui/core/state"
"github.com/kyren223/eko/internal/client/ui/field"
"github.com/kyren223/eko/internal/client/ui/layouts/flex"
@@ -166,7 +166,7 @@ func (m Model) Init() tea.Cmd {
func (m Model) View() string {
name := m.name.View()
- iconPreview := networklist.IconStyle(m.icon.Value(), m.lastFg, m.lastBg).String()
+ iconPreview := ui.IconStyle(m.icon.Value(), m.lastFg, m.lastBg, colors.Background).String()
iconPreview = lipgloss.NewStyle().Width(m.nameWidth).Align(lipgloss.Center).Render(iconPreview)
color := colors.Gray