theme

package
v0.0.0-...-4b42cdd Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: MIT, Unlicense Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Primary        = HexToNRGBA("69f0ae")
	PrimaryLight   = HexToNRGBA("9fffe0")
	PrimaryDark    = HexToNRGBA("2bbd7e")
	Secondary      = HexToNRGBA("ff80ab")
	SecondaryLight = HexToNRGBA("ffb2dd")
	SecondaryDark  = HexToNRGBA("e94f7c")
	Black          = HexToNRGBA("000000")
	White          = HexToNRGBA("ffffff")
	Background     = HexToNRGBA("eeeeee")
)

Functions

func HexToNRGBA

func HexToNRGBA(hex string) color.NRGBA

Types

type AccountChangeStyle

type AccountChangeStyle struct {
	Margin  layout.Inset
	Padding layout.Inset
	Name    material.LabelStyle
	Balance material.LabelStyle
	Comment material.LabelStyle
}

func AccountChange

func AccountChange(th *material.Theme, account ledger.Account, comment string) AccountChangeStyle

func (AccountChangeStyle) Layout

func (a AccountChangeStyle) Layout(gtx C) D

type AccountStyle

type AccountStyle struct {
	Name    material.LabelStyle
	Balance material.LabelStyle
}

func Account

func Account(th *material.Theme, account ledger.Account) AccountStyle

func (AccountStyle) Layout

func (a AccountStyle) Layout(gtx C) D

type C

type C = layout.Context

type D

type D = layout.Dimensions

type TransactionStyle

type TransactionStyle struct {
	Margin   layout.Inset
	Date     material.LabelStyle
	Payee    material.LabelStyle
	Accounts []AccountChangeStyle
}

func Transaction

func Transaction(th *material.Theme, tx *ledger.Transaction) TransactionStyle

func (TransactionStyle) Layout

func (t TransactionStyle) Layout(gtx C) D

Jump to

Keyboard shortcuts

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