Basic GUI client, login dialog, various comments fixes after copypaste.
Some checks failed
Linting and tests / Linting (push) Failing after 6s

This commit is contained in:
2025-09-13 09:23:47 +05:00
parent 91bc3acb08
commit 0c37f46b53
24 changed files with 507 additions and 56 deletions

View 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
}