theme

package
v0.0.0-...-caf0cee Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2024 License: MIT, Unlicense Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type C

type C = l.Context

type D

type D = l.Dimensions
type NavSlugsStyle struct {
	l.Flex
	m.ListStyle
	// contains filtered or unexported fields
}

NavSlugStyle shows navigation slugs with arbitrary content.

func NavSlugs(th *m.Theme, state *widget.NavSlugs) NavSlugsStyle

NavSlugs shows clickable navigation slugs.

func (s NavSlugsStyle) Layout(gtx C, slugs ...l.Widget) D

Layout the navigation slugs.

func (s NavSlugsStyle) Push(w l.Widget)

Push a widget as a nav slug.

type Palette

type Palette struct {
	Primary color.NRGBA
}

type SidePanelStyle

type SidePanelStyle struct {
	Width        unit.Dp
	Bg           color.NRGBA
	PopHistory   m.ButtonStyle
	NavHome      m.ButtonStyle
	NavGallery   m.ButtonStyle
	NavChat      m.ButtonStyle
	CreateWindow m.ButtonStyle
	// contains filtered or unexported fields
}

SidePanelStyle shows navigation and global controls in a side panel.

func SidePanel

func SidePanel(th *Th, state *widget.SidePanel) SidePanelStyle

func (SidePanelStyle) Layout

func (p SidePanelStyle) Layout(gtx C) D

type Th

type Th struct {
	Th      *m.Theme
	Palette Palette
}

func New

func New() *Th

func (*Th) Button

func (th *Th) Button(btn *widget.Clickable, text string) m.ButtonStyle

func (*Th) Label

func (th *Th) Label(size unit.Sp, text string) m.LabelStyle

func (*Th) List

func (th *Th) List(list *widget.List) m.ListStyle

func (*Th) NavSlugs

func (th *Th) NavSlugs(state *widget.NavSlugs) NavSlugsStyle

func (*Th) SetPalette

func (th *Th) SetPalette(p Palette)

func (*Th) SidePanel

func (th *Th) SidePanel(state *widget.SidePanel) SidePanelStyle

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL