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
// MaxLines limits the maximum number of lines of content text that should
// be displayed. Values less than 1 indicate unlimited.
MaxLines int
// CollapseMetadata should be set to true if this reply can be rendered
// without the author being displayed.
CollapseMetadata bool
*forest.Reply
Author *forest.Identity
Community *forest.Community
// contains filtered or unexported fields
}
func Reply ¶
func Reply(th *Theme, status ReplyStatus, reply *forest.Reply, author *forest.Identity, community *forest.Community) ReplyStyle
func (ReplyStyle) Layout ¶
func (r ReplyStyle) Layout(gtx layout.Context) layout.Dimensions
type TextFormStyle ¶ added in v0.0.9
type TextFormStyle struct {
State *widget.TextForm
// internal widget separation distance
layout.Inset
PasteButton material.IconButtonStyle
SubmitButton material.ButtonStyle
material.EditorStyle
EditorBackground color.RGBA
}
func TextForm ¶ added in v0.0.9
func TextForm(th *Theme, state *widget.TextForm, submitText, formHint string) TextFormStyle
func (TextFormStyle) Layout ¶ added in v0.0.9
func (t TextFormStyle) Layout(gtx layout.Context) layout.Dimensions
Click to show internal directories.
Click to hide internal directories.