theme

package
v0.0.0-...-df3f4e6 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	IconArrowBack   = load(icons.NavigationArrowBack)
	IconCheckCircle = load(icons.ActionCheckCircle)
	IconDelete      = load(icons.ActionDelete)
	IconEdit        = load(icons.ImageTune)
	IconSave        = load(icons.ContentSave)
	IconUpload      = load(icons.FileFileUpload)
)
View Source
var (
	IconCheckCircleSelected    = white
	IconCheckCircleSelectedNot = gray
)

Functions

This section is empty.

Types

type C

type C = layout.Context

type D

type D = layout.Dimensions

type Palette

type Palette struct {
	Primary color.NRGBA
}

type SidePanelStyle

type SidePanelStyle struct {
	Width       unit.Dp
	Bg          color.NRGBA
	PopHistory  material.ButtonStyle
	NavHome     material.ButtonStyle
	NavTimeline material.ButtonStyle
	NavAlbums   material.ButtonStyle
	NavUpload   material.ButtonStyle
	// contains filtered or unexported fields
}

SidePanelStyle shows navigation and global controls in a side panel.

func SidePanel

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

func (SidePanelStyle) Layout

func (p SidePanelStyle) Layout(gtx C) D

type Theme

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

func New

func New() *Theme

func (*Theme) Button

func (th *Theme) Button(btn *widget.Clickable, text string) material.ButtonStyle

func (*Theme) Caption

func (th *Theme) Caption(text string) material.LabelStyle

func (*Theme) H6

func (th *Theme) H6(text string) material.LabelStyle

func (*Theme) Label

func (th *Theme) Label(size unit.Sp, text string) material.LabelStyle

func (*Theme) List

func (th *Theme) List(list *widget.List) material.ListStyle

func (*Theme) SetPalette

func (th *Theme) SetPalette(p Palette)

func (*Theme) SidePanel

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

Jump to

Keyboard shortcuts

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