diff options
| author | Priyansh <[email protected]> | 2025-08-28 13:09:22 +0530 |
|---|---|---|
| committer | Priyansh <[email protected]> | 2025-08-28 13:09:22 +0530 |
| commit | 9e82811a2a963be962fc3ffc426c137e01d56e2d (patch) | |
| tree | 9cde1691f6e8dafb7204b7247dea12af0aa22bf6 /components/statusbar.go | |
| parent | 18b897a36805d1acb6e2352ca536c1eee9249fe3 (diff) | |
| download | nectar-main.tar.xz nectar-main.zip | |
Restructure codebase with proper organization, fix file picker navigation, and add utils packageHEADmain
Diffstat (limited to 'components/statusbar.go')
| -rw-r--r-- | components/statusbar.go | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/components/statusbar.go b/components/statusbar.go deleted file mode 100644 index 34975b0..0000000 --- a/components/statusbar.go +++ /dev/null @@ -1,39 +0,0 @@ -package components - -import ( - "nectar/styles" - "nectar/types" - - "github.com/charmbracelet/lipgloss" -) - -func RootStatusBar(globals *types.Globals) string { - w := lipgloss.Width - - helpText := lipgloss.JoinHorizontal( - lipgloss.Top, - styles.PaddedHorizontal.Render("↑/k: up"), - styles.PaddedHorizontal.Render("↓/j: down"), - styles.PaddedHorizontal.Render("↵: select"), - styles.PaddedHorizontal.Render("^n: new connection"), - styles.PaddedHorizontal.Render("^↵: connect"), - styles.PaddedHorizontal.Render("^d: delete"), - styles.PaddedHorizontal.Render("^c: quit"), - ) - - versionText := lipgloss.JoinHorizontal( - lipgloss.Top, - styles.PaddedHorizontal.Render("Nectar "+globals.Version+" ("+globals.BuildDate+")"), - ) - - separator := styles.BaseStyle.Width(globals.Width - w(helpText) - w(versionText)).Render("") - - return styles.StatusBar.Render( - lipgloss.JoinHorizontal( - lipgloss.Top, - helpText, - separator, - versionText, - ), - ) -} |
