diff options
| author | Kyren223 <Kyren223@proton.me> | 2025-07-15 17:34:06 +0300 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2025-07-19 18:32:12 +0300 |
| commit | ef45261e015bee70d8c6847d02c4552f609b9dff (patch) | |
| tree | 68efe63e7521b491a15fba39f996d7a1488ac123 | |
| parent | 8cee7aa9df589112573e8e9ea7a263a5d2628514 (diff) | |
Added a stub right sidebar for signals
| -rw-r--r-- | internal/client/ui/core/core.go | 26 |
1 files changed, 25 insertions, 1 deletions
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 := "" |
