summaryrefslogtreecommitdiff
path: root/internal/tui/tui.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-06 16:47:40 +0200
committerPaul Buetow <paul@buetow.org>2026-03-06 16:47:40 +0200
commit675f6d544e62a656581408b7dbefa2e7a4d5c92a (patch)
tree683f711e11f6e10786ce4bb6b25bbc47658714b3 /internal/tui/tui.go
parentbc7a162f20a62d4f2ac0ba4908e67689e1ee2c5c (diff)
refactor: use common panel style directly in tui (task 382)
Diffstat (limited to 'internal/tui/tui.go')
-rw-r--r--internal/tui/tui.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/tui/tui.go b/internal/tui/tui.go
index 4051508..774be12 100644
--- a/internal/tui/tui.go
+++ b/internal/tui/tui.go
@@ -740,7 +740,7 @@ func (m Model) View() tea.View {
if m.attaching {
line := fmt.Sprintf("%s Attaching tracepoints...", m.spin.View())
- return altScreenView(placeToViewport(width, height, ScreenStyle.Render(PanelStyle.Render(line))), title)
+ return altScreenView(placeToViewport(width, height, ScreenStyle.Render(common.PanelStyle.Render(line))), title)
}
if m.lastErr != nil {
@@ -837,7 +837,7 @@ func renderHelpOverlay(width, height int, groups [][]key.Binding) string {
boxWidth = 72
}
- box := PanelStyle.Copy().
+ box := common.PanelStyle.Copy().
Width(boxWidth).
Render(strings.Join(lines, "\n"))
@@ -932,7 +932,7 @@ func renderGlobalHelpOverlay(width, height int, sections []helpSection) string {
lines = append(lines, truncateHelpLine("... (resize for full help)", contentWidth))
}
- box := PanelStyle.Copy().Width(boxWidth).Render(strings.Join(lines, "\n"))
+ box := common.PanelStyle.Copy().Width(boxWidth).Render(strings.Join(lines, "\n"))
return lipgloss.Place(width, height, lipgloss.Center, lipgloss.Center, box)
}