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
func AuthorName ¶ added in v0.0.6
func AuthorName(theme *material.Theme, identity *forest.Identity) AuthorNameStyle
func (AuthorNameStyle) Layout ¶ added in v0.0.6
func (a AuthorNameStyle) Layout(gtx layout.Context) layout.Dimensions
type CommunityNameStyle ¶ added in v0.0.6
func CommunityName ¶ added in v0.0.6
func CommunityName(theme *material.Theme, community *forest.Community) CommunityNameStyle
func (CommunityNameStyle) Layout ¶ added in v0.0.6
func (a CommunityNameStyle) Layout(gtx layout.Context) layout.Dimensions
type D ¶ added in v0.0.6
type D = layout.Dimensions
type ReplyStatus ¶ added in v0.0.8
type ReplyStatus int
const ( None ReplyStatus = iota Sibling Selected Ancestor Descendant )
type ReplyStyle ¶
type ReplyStyle struct { *Theme Highlight color.RGBA 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 // contains filtered or unexported fields }
func Reply ¶
func Reply(th *Theme, status ReplyStatus) ReplyStyle
func (ReplyStyle) Layout ¶
func (r ReplyStyle) Layout(gtx layout.Context, reply *forest.Reply, author *forest.Identity, community *forest.Community) layout.Dimensions
Click to show internal directories.
Click to hide internal directories.