MCPcopy Create free account
hub / github.com/FlashpointProject/FlashpointUltimateUpdater / topBarLayout

Function topBarLayout

main.go:594–612  ·  view source on GitHub ↗
(activeTab string)

Source from the content-addressed store, hash-verified

592}
593
594func 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
614func validatePath(p string) (string, bool, error) {
615 /** Check order of:

Callers 2

setupLayoutFunction · 0.85
mainLayoutFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected