Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
likesToEatFish committed Oct 14, 2024
1 parent b26b894 commit 080f811
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions ignite/cmd/bubblemodel/testnet_multi_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,15 +187,15 @@ func (m MultiNode) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
// View renders the interface.
func (m MultiNode) View() string {
// Define styles for the state
runningStyle := lipgloss.NewStyle().Foreground(lipgloss.Color("2")) // green
stoppedStyle := lipgloss.NewStyle().Foreground(lipgloss.Color("1")) // red
tcpStyle := lipgloss.NewStyle().Foreground(lipgloss.Color("3")) // yellow
grayStyle := lipgloss.NewStyle().Foreground(lipgloss.Color("8")) // gray
purpleStyle := lipgloss.NewStyle().Foreground(lipgloss.Color("5")) // purple
statusBarStyle := lipgloss.NewStyle().Foreground(lipgloss.Color("5")).Background(lipgloss.Color("0")) // Status bar style

// Add status bar at the top with action information
statusBar := statusBarStyle.Render("Press q to quit | Press 1-4 to start/stop corresponding node")
runningStyle := lipgloss.NewStyle().Foreground(lipgloss.Color("2")) // green
stoppedStyle := lipgloss.NewStyle().Foreground(lipgloss.Color("1")) // red
tcpStyle := lipgloss.NewStyle().Foreground(lipgloss.Color("3")) // yellow
grayStyle := lipgloss.NewStyle().Foreground(lipgloss.Color("8")) // gray
purpleStyle := lipgloss.NewStyle().Foreground(lipgloss.Color("5")) // purple
statusBarStyle := lipgloss.NewStyle().Background(lipgloss.Color("0")) // Status bar style
blueStyle := lipgloss.NewStyle().Foreground(lipgloss.Color("45")).Background(lipgloss.Color("0")) //blue

statusBar := blueStyle.Render("Press q to quit | Press 1-4 to ") + statusBarStyle.Render(runningStyle.Render("start")) + blueStyle.Render("/") + statusBarStyle.Render(stoppedStyle.Render("stop")) + blueStyle.Render(" corresponding node")
output := statusBar + "\n\n"

// Add node control section
Expand Down

0 comments on commit 080f811

Please sign in to comment.