Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IconButton

func IconButton(th theme.Theme, b *widget.Clickable, f func(), icon, page string) func(gtx C) D

Types

type C

type C = layout.Context

type CMS

type CMS struct {
	UI        cmsUI
	MenuItems []Item
	Settings  gipfsSettings
	ItemsList []*items.FolderListItem
	// contains filtered or unexported fields
}

func NewCMS

func NewCMS(theme *theme.Theme, header func(gtx C) D) *CMS

func (*CMS) AfterMain

func (g *CMS) AfterMain()

func (*CMS) AppMain

func (g *CMS) AppMain()

func (*CMS) BeforeMain

func (g *CMS) BeforeMain()

func (*CMS) Tik

func (g *CMS) Tik() func()

type D

type D = layout.Dimensions

type Item

type Item struct {
	Title string
	Bg    string
	//Icon  *widget.Icon
	Icon string
	Btn  *widget.Clickable
}
type Logo struct {
	Title string
}
type Navigation struct {
	Name  string
	Bg    string
	Items []Item
	// contains filtered or unexported fields
}
func (n *Navigation) Nav(th *theme.Theme, gtx layout.Context, width int, noText bool, logo func(gtx layout.Context) layout.Dimensions) layout.Dimensions

type Page

type Page struct {
	Title  string
	Header func(gtx C) D
	Body   []func(gtx C) D
}