theme

package
v0.0.0-...-b346baa Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Theme

type Theme struct {
	Shaper *text.Shaper
	Color  struct {
		Text    color.RGBA
		Hint    color.RGBA
		InvText color.RGBA
		BgEven  color.RGBA
		BgCurr  color.RGBA
	}
	TextSize unit.Value
}

Theme is simple copy of gioui.org/widget/material theme

func NewTheme

func NewTheme() *Theme

NewTheme returns simple theme

func (*Theme) Body

func (t *Theme) Body(txt string) label

Body is a wrapper around themed label

func (*Theme) BodyOdd

func (t *Theme) BodyOdd(txt string) label

BodyOdd is a wrapper around themed label for odd rows

func (*Theme) Caption

func (t *Theme) Caption(txt string) label

Caption returns a label for profiling

func (*Theme) Editor

func (t *Theme) Editor(hint string) editor

Editor returns an editor

func (*Theme) Label

func (t *Theme) Label(size unit.Value, txt string) label

Label returns themed label

func (*Theme) LabelOdd

func (t *Theme) LabelOdd(size unit.Value, txt string) label

Label returns themed lable for odd rows in list

Jump to

Keyboard shortcuts

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