material

package
v0.0.0-...-2cef729 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewToolbar

func NewToolbar(title *widget.Label, actions ...*ToolbarActionButton) fyne.CanvasObject

TODO: Replace with custom Widget

Types

type DrawerItem

type DrawerItem struct {
	widget.BaseWidget
	Text     string
	Selected bool
	// contains filtered or unexported fields
}

func NewDrawerItem

func NewDrawerItem(text string, onTapped func()) *DrawerItem

func (*DrawerItem) CreateRenderer

func (i *DrawerItem) CreateRenderer() fyne.WidgetRenderer

func (*DrawerItem) MouseIn

func (i *DrawerItem) MouseIn(*desktop.MouseEvent)

func (*DrawerItem) MouseMoved

func (i *DrawerItem) MouseMoved(*desktop.MouseEvent)

func (*DrawerItem) MouseOut

func (i *DrawerItem) MouseOut()

func (*DrawerItem) SetSelected

func (i *DrawerItem) SetSelected(selected bool)

func (*DrawerItem) Tapped

func (i *DrawerItem) Tapped(*fyne.PointEvent)

func (*DrawerItem) TappedSecondary

func (i *DrawerItem) TappedSecondary(*fyne.PointEvent)

type Theme

type Theme struct {
	WindowBackground color.Color
	// contains filtered or unexported fields
}

func NewLightTheme

func NewLightTheme() *Theme

NewLightTheme returns a new light theme.

func (*Theme) BackgroundColor

func (t *Theme) BackgroundColor() color.Color

func (*Theme) ButtonColor

func (t *Theme) ButtonColor() color.Color

func (*Theme) DisabledButtonColor

func (t *Theme) DisabledButtonColor() color.Color

func (*Theme) DisabledIconColor

func (t *Theme) DisabledIconColor() color.Color

func (*Theme) DisabledTextColor

func (t *Theme) DisabledTextColor() color.Color

func (*Theme) FocusColor

func (t *Theme) FocusColor() color.Color

func (*Theme) HoverColor

func (t *Theme) HoverColor() color.Color

func (*Theme) HyperlinkColor

func (t *Theme) HyperlinkColor() color.Color

func (*Theme) IconColor

func (t *Theme) IconColor() color.Color

func (*Theme) IconInlineSize

func (t *Theme) IconInlineSize() int

func (*Theme) Padding

func (t *Theme) Padding() int

func (*Theme) PlaceHolderColor

func (t *Theme) PlaceHolderColor() color.Color

func (*Theme) PrimaryColor

func (t *Theme) PrimaryColor() color.Color

func (*Theme) ScrollBarColor

func (t *Theme) ScrollBarColor() color.Color

func (*Theme) ScrollBarSize

func (t *Theme) ScrollBarSize() int

func (*Theme) ScrollBarSmallSize

func (t *Theme) ScrollBarSmallSize() int

func (*Theme) ShadowColor

func (t *Theme) ShadowColor() color.Color

func (*Theme) TextBoldFont

func (t *Theme) TextBoldFont() fyne.Resource

func (*Theme) TextBoldItalicFont

func (t *Theme) TextBoldItalicFont() fyne.Resource

func (*Theme) TextColor

func (t *Theme) TextColor() color.Color

func (*Theme) TextFont

func (t *Theme) TextFont() fyne.Resource

func (*Theme) TextItalicFont

func (t *Theme) TextItalicFont() fyne.Resource

func (*Theme) TextMonospaceFont

func (t *Theme) TextMonospaceFont() fyne.Resource

func (*Theme) TextSize

func (t *Theme) TextSize() int

type ToolbarActionButton

type ToolbarActionButton struct {
	widget.BaseWidget
	// contains filtered or unexported fields
}

func NewToolbarActionButton

func NewToolbarActionButton(icon fyne.Resource, onTapped func()) *ToolbarActionButton

func (*ToolbarActionButton) CreateRenderer

func (b *ToolbarActionButton) CreateRenderer() fyne.WidgetRenderer

func (*ToolbarActionButton) MouseIn

func (b *ToolbarActionButton) MouseIn(*desktop.MouseEvent)

func (*ToolbarActionButton) MouseMoved

func (b *ToolbarActionButton) MouseMoved(*desktop.MouseEvent)

func (*ToolbarActionButton) MouseOut

func (b *ToolbarActionButton) MouseOut()

func (*ToolbarActionButton) Tapped

func (b *ToolbarActionButton) Tapped(*fyne.PointEvent)

func (*ToolbarActionButton) TappedSecondary

func (b *ToolbarActionButton) TappedSecondary(*fyne.PointEvent)

Jump to

Keyboard shortcuts

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