theme

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorNameStyle added in v0.0.6

type AuthorNameStyle struct {
	*forest.Identity
	*material.Theme
}

func AuthorName added in v0.0.6

func AuthorName(theme *material.Theme, identity *forest.Identity) AuthorNameStyle

func (AuthorNameStyle) Layout added in v0.0.6

type C added in v0.0.6

type C = layout.Context

type CommunityNameStyle added in v0.0.6

type CommunityNameStyle struct {
	*forest.Community
	Prefix string
	*material.Theme
}

func CommunityName added in v0.0.6

func CommunityName(theme *material.Theme, community *forest.Community) CommunityNameStyle

func (CommunityNameStyle) Layout added in v0.0.6

type D added in v0.0.6

type D = layout.Dimensions

type ReplyStyle

type ReplyStyle struct {
	*material.Theme
	Background color.RGBA
	TextColor  color.RGBA

	// CollapseMetadata should be set to true if this reply can be rendered
	// without the author being displayed.
	CollapseMetadata bool
}

func Reply

func Reply(th *material.Theme) ReplyStyle

func (ReplyStyle) Layout

func (r ReplyStyle) Layout(gtx layout.Context, reply *forest.Reply, author *forest.Identity, community *forest.Community) layout.Dimensions

Jump to

Keyboard shortcuts

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