| 1234567891011121314151617181920212223242526272829303132333435363738 | package viewsimport (	"image/color"	"fyne.io/fyne/v2"	"github.com/gravitl/netmaker/netclient/gui/components")// GenerateNotification - generates a notificationfunc GenerateNotification(text string, c color.Color) fyne.CanvasObject {	return components.ColoredText(text, c)}// ChangeNotification - changes the current notification in the viewfunc ChangeNotification(text string, c color.Color) {	RefreshComponent(Notify, GenerateNotification(text, c))}// ClearNotification - hides the notificationsfunc ClearNotification() {	RefreshComponent(Notify, GenerateNotification("", color.Transparent))}// LoadingNotify - changes notification to loading...func LoadingNotify() {	RefreshComponent(Notify, GenerateNotification("loading...", components.Blue_color))}// ErrorNotify - changes notification to a specified errorfunc ErrorNotify(msg string) {	RefreshComponent(Notify, GenerateNotification(msg, components.Danger_color))}// SuccessNotify - changes notification to a specified success messagefunc SuccessNotify(msg string) {	RefreshComponent(Notify, GenerateNotification(msg, components.Gravitl_color))}
 |