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:
20
client/internal/services/core/mainwindow/dto/tab.go
Normal file
20
client/internal/services/core/mainwindow/dto/tab.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package dto
|
||||
|
||||
import (
|
||||
"fyne.io/fyne/v2"
|
||||
"fyne.io/fyne/v2/canvas"
|
||||
)
|
||||
|
||||
// Tab is a DTO of main window's tab that is responsible for showing content.
|
||||
type Tab struct {
|
||||
// Name is a name for tab. Won't render by default on desktop, only on mouse hover, but will be rendered on mobiles.
|
||||
Name string
|
||||
// Sidebar is a sidebar widget. On desktop in will be shown on left side of window, on mobiles as separate window.
|
||||
Sidebar fyne.CanvasObject
|
||||
// Widget is a widget shown in window.
|
||||
Widget fyne.CanvasObject
|
||||
// Icon is an icon to show on tab.
|
||||
Icon canvas.Image
|
||||
// BadgeCount is a number to show on tab, like unread messages, incompleted tasks, etc.
|
||||
BadgeCount uint16
|
||||
}
|
Reference in New Issue
Block a user