We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The way to set the positions of widgets is through the x1 y1 coordinates in func (*Block) SetRect:
p := widgets.NewParagraph() p.Title = "Lunar" p.Text = selectedAudio p.SetRect(0, 0, 40, 3) p.TitleStyle.Fg = ui.ColorYellow p.BorderStyle.Fg = ui.ColorCyan c := widgets.NewParagraph() c.Title = "Audio Controls" c.Text = `Pause and play music: [ENTER] Volume: [↓ ↑] Speed: [← →] Normal Speed: [Ctrl + N] Back to menu: [BACKSPACE] Quit Lunar: [ESC] ` c.SetRect(0, 4, 40, 12) c.TitleStyle.Fg = ui.ColorYellow c.BorderStyle.Fg = ui.ColorCyan ui.Render(p, c)
But this can create overlap over widgets:
+-Lunar--------------------------------+ |Playing Charlie Puth | +--------------------------------------+ |Normal Speed: [Ctrl + N] | |Back to menu: [BACKSPACE] | |Quit Lunar: [ESC] | +--------------------------------------+
Preferred output:
+-Lunar--------------------------------+ |Playing Charlie Puth | +--------------------------------------+ +-Audio Controls-----------------------+ |Pause and play music: [ENTER] | |Volume: [↓ ↑] | |Speed: [← →] | |Normal Speed: [Ctrl + N] | |Back to menu: [BACKSPACE] | |Quit Lunar: [ESC] | +--------------------------------------+
My idea is to create a container for the widgets like in the Fyne GUI to position the widgets and avoid widget overlap:
SetContent(NewVericalBox(c, p))
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The way to set the positions of widgets is through the x1 y1 coordinates in func (*Block) SetRect:
But this can create overlap over widgets:
Preferred output:
My idea is to create a container for the widgets like in the Fyne GUI to position
the widgets and avoid widget overlap:
The text was updated successfully, but these errors were encountered: