Basic GUI client, login dialog, various comments fixes after copypaste.
Some checks failed
Linting and tests / Linting (push) Failing after 6s
Some checks failed
Linting and tests / Linting (push) Failing after 6s
This commit is contained in:
23
client/internal/widgets/toolbar_progressbar.go
Normal file
23
client/internal/widgets/toolbar_progressbar.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package widgets
|
||||
|
||||
import (
|
||||
"fyne.io/fyne/v2"
|
||||
"fyne.io/fyne/v2/widget"
|
||||
)
|
||||
|
||||
// ToolbarProgressBar is a progressbar widget for toolbar.
|
||||
type ToolbarProgressBar struct {
|
||||
*widget.ProgressBar
|
||||
}
|
||||
|
||||
// NewToolbarProgressBarWithBar creates new progressbar for toolbar with provided progressbar.
|
||||
func NewToolbarProgressBarWithBar(bar *widget.ProgressBar) *ToolbarProgressBar {
|
||||
return &ToolbarProgressBar{
|
||||
bar,
|
||||
}
|
||||
}
|
||||
|
||||
// ToolbarObject returns toolbar item.
|
||||
func (tl *ToolbarProgressBar) ToolbarObject() fyne.CanvasObject {
|
||||
return tl
|
||||
}
|
Reference in New Issue
Block a user