(activeTab string)
| 592 | } |
| 593 | |
| 594 | func topBarLayout(activeTab string) *fyne.Container { |
| 595 | label1 := widget.NewLabelWithStyle("Setup", fyne.TextAlignCenter, fyne.TextStyle{Bold: activeTab == "setup"}) |
| 596 | label2 := widget.NewLabel(">") |
| 597 | label3 := widget.NewLabelWithStyle("Install", fyne.TextAlignCenter, fyne.TextStyle{Bold: activeTab == "install"}) |
| 598 | |
| 599 | line := canvas.NewLine(color.Gray{Y: 0x55}) |
| 600 | line.StrokeWidth = 2 |
| 601 | |
| 602 | return container.New(layout.NewVBoxLayout(), |
| 603 | container.New(layout.NewHBoxLayout(), |
| 604 | layout.NewSpacer(), |
| 605 | label1, |
| 606 | layout.NewSpacer(), |
| 607 | label2, |
| 608 | layout.NewSpacer(), |
| 609 | label3, |
| 610 | layout.NewSpacer()), |
| 611 | line) |
| 612 | } |
| 613 | |
| 614 | func validatePath(p string) (string, bool, error) { |
| 615 | /** Check order of: |
no outgoing calls
no test coverage detected