From 080f811ad5363c129a4b9cc69d68a4b8eb0d4833 Mon Sep 17 00:00:00 2001 From: Likes To Eat Fish Date: Mon, 14 Oct 2024 10:39:52 +0700 Subject: [PATCH] nits --- ignite/cmd/bubblemodel/testnet_multi_node.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/ignite/cmd/bubblemodel/testnet_multi_node.go b/ignite/cmd/bubblemodel/testnet_multi_node.go index ce1fdcdb19..c3f46d3063 100644 --- a/ignite/cmd/bubblemodel/testnet_multi_node.go +++ b/ignite/cmd/bubblemodel/testnet_multi_node.go @@ -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