From ef45261e015bee70d8c6847d02c4552f609b9dff Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Tue, 15 Jul 2025 17:34:06 +0300 Subject: Added a stub right sidebar for signals --- internal/client/ui/core/core.go | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/internal/client/ui/core/core.go b/internal/client/ui/core/core.go index 4c64c75..8706988 100644 --- a/internal/client/ui/core/core.go +++ b/internal/client/ui/core/core.go @@ -186,7 +186,31 @@ func (m Model) View() string { leftSidebar = m.frequencyList.View() } chat := m.chat.View() - rightSidebar := m.memberList.View() + var rightSidebar string + if m.networkList.Index() == networklist.SignalsIndex { + // TODO: decide what to put here + width := lipgloss.Width(leftSidebar) + height := ui.Height + if config.ReadConfig().ScreenBorders { + height -= 2 // To account for borders + } + + focusColor := colors.White + if m.focus == FocusRightSidebar { + focusColor = colors.Focus + } + + rightSidebar = lipgloss.NewStyle(). + Width(width).Height(height). + Border(lipgloss.ThickBorder(), config.ReadConfig().ScreenBorders, false). + BorderBackground(colors.BackgroundDim).BorderForeground(focusColor). + Background(colors.BackgroundDim).Foreground(colors.White). + Align(lipgloss.Center, lipgloss.Center). + Render("what should we put here?") + + } else { + rightSidebar = m.memberList.View() + } leftBorder := "" rightBorder := "" -- cgit v1.3.1