fyne: fyne.io/fyne/theme Index | Files

package theme

import "fyne.io/fyne/theme"

Package theme defines how a Fyne app should look when rendered

Index

Package Files

bundled-fonts.go bundled-icons.go icons.go svg.go theme.go

func BackgroundColor Uses

func BackgroundColor() color.Color

BackgroundColor returns the theme's background colour

func ButtonColor Uses

func ButtonColor() color.Color

ButtonColor returns the theme's standard button colour

func CancelIcon Uses

func CancelIcon() fyne.Resource

CancelIcon returns a resource containing the standard cancel icon for the current theme

func CheckButtonCheckedIcon Uses

func CheckButtonCheckedIcon() fyne.Resource

CheckButtonCheckedIcon returns a resource containing the standard checkbox checked icon for the current theme

func CheckButtonIcon Uses

func CheckButtonIcon() fyne.Resource

CheckButtonIcon returns a resource containing the standard checkbox icon for the current theme

func ConfirmIcon Uses

func ConfirmIcon() fyne.Resource

ConfirmIcon returns a resource containing the standard confirm icon for the current theme

func ContentAddIcon Uses

func ContentAddIcon() fyne.Resource

ContentAddIcon returns a resource containing the standard content add icon for the current theme

func ContentClearIcon Uses

func ContentClearIcon() fyne.Resource

ContentClearIcon returns a resource containing the standard content clear icon for the current theme

func ContentCopyIcon Uses

func ContentCopyIcon() fyne.Resource

ContentCopyIcon returns a resource containing the standard content copy icon for the current theme

func ContentCutIcon Uses

func ContentCutIcon() fyne.Resource

ContentCutIcon returns a resource containing the standard content cut icon for the current theme

func ContentPasteIcon Uses

func ContentPasteIcon() fyne.Resource

ContentPasteIcon returns a resource containing the standard content paste icon for the current theme

func ContentRedoIcon Uses

func ContentRedoIcon() fyne.Resource

ContentRedoIcon returns a resource containing the standard content redo icon for the current theme

func ContentRemoveIcon Uses

func ContentRemoveIcon() fyne.Resource

ContentRemoveIcon returns a resource containing the standard content remove icon for the current theme

func ContentUndoIcon Uses

func ContentUndoIcon() fyne.Resource

ContentUndoIcon returns a resource containing the standard content undo icon for the current theme

func DarkTheme Uses

func DarkTheme() fyne.Theme

DarkTheme defines the built in dark theme colours and sizes

func DefaultTextBoldFont Uses

func DefaultTextBoldFont() fyne.Resource

DefaultTextBoldFont retutns the font resource for the built-in bold font style

func DefaultTextBoldItalicFont Uses

func DefaultTextBoldItalicFont() fyne.Resource

DefaultTextBoldItalicFont returns the font resource for the built-in bold and italic font style

func DefaultTextFont Uses

func DefaultTextFont() fyne.Resource

DefaultTextFont returns the font resource for the built-in regular font style

func DefaultTextItalicFont Uses

func DefaultTextItalicFont() fyne.Resource

DefaultTextItalicFont returns the font resource for the built-in italic font style

func DefaultTextMonospaceFont Uses

func DefaultTextMonospaceFont() fyne.Resource

DefaultTextMonospaceFont retutns the font resource for the built-in monospace font face

func DeleteIcon Uses

func DeleteIcon() fyne.Resource

DeleteIcon returns a resource containing the standard delete icon for the current theme

func DisabledButtonColor Uses

func DisabledButtonColor() color.Color

DisabledButtonColor returns the theme's disabled button colour

func DisabledIconColor Uses

func DisabledIconColor() color.Color

DisabledIconColor returns the color for a disabledIcon UI element

func DisabledTextColor Uses

func DisabledTextColor() color.Color

DisabledTextColor returns the color for a disabledIcon UI element

func DocumentCreateIcon Uses

func DocumentCreateIcon() fyne.Resource

DocumentCreateIcon returns a resource containing the standard document create icon for the current theme

func DocumentPrintIcon Uses

func DocumentPrintIcon() fyne.Resource

DocumentPrintIcon returns a resource containing the standard document print icon for the current theme

func DocumentSaveIcon Uses

func DocumentSaveIcon() fyne.Resource

DocumentSaveIcon returns a resource containing the standard document save icon for the current theme

func FocusColor Uses

func FocusColor() color.Color

FocusColor returns the colour used to highlight a focussed widget

func FolderIcon Uses

func FolderIcon() fyne.Resource

FolderIcon returns a resource containing the standard folder icon for the current theme

func FolderNewIcon Uses

func FolderNewIcon() fyne.Resource

FolderNewIcon returns a resource containing the standard folder creation icon for the current theme

func FolderOpenIcon Uses

func FolderOpenIcon() fyne.Resource

FolderOpenIcon returns a resource containing the standard folder open icon for the current theme

func FyneLogo() fyne.Resource

FyneLogo returns a resource containing the Fyne logo

func HelpIcon Uses

func HelpIcon() fyne.Resource

HelpIcon returns a resource containing the standard help icon for the current theme

func HomeIcon Uses

func HomeIcon() fyne.Resource

HomeIcon returns a resource containing the standard home folder icon for the current theme

func HoverColor Uses

func HoverColor() color.Color

HoverColor returns the colour used to highlight interactive elements currently under a cursor

func HyperlinkColor Uses

func HyperlinkColor() color.Color

HyperlinkColor returns the theme's standard hyperlink colour

func IconColor Uses

func IconColor() color.Color

IconColor returns the theme's standard text colour

func IconInlineSize Uses

func IconInlineSize() int

IconInlineSize is the standard size of icons which appear within buttons, labels etc.

func InfoIcon Uses

func InfoIcon() fyne.Resource

InfoIcon returns a resource containing the standard dialog info icon for the current theme

func LightTheme Uses

func LightTheme() fyne.Theme

LightTheme defines the built in light theme colours and sizes

func MailAttachmentIcon Uses

func MailAttachmentIcon() fyne.Resource

MailAttachmentIcon returns a resource containing the standard mail attachment icon for the current theme

func MailComposeIcon Uses

func MailComposeIcon() fyne.Resource

MailComposeIcon returns a resource containing the standard mail compose icon for the current theme

func MailForwardIcon Uses

func MailForwardIcon() fyne.Resource

MailForwardIcon returns a resource containing the standard mail forward icon for the current theme

func MailReplyAllIcon Uses

func MailReplyAllIcon() fyne.Resource

MailReplyAllIcon returns a resource containing the standard mail reply all icon for the current theme

func MailReplyIcon Uses

func MailReplyIcon() fyne.Resource

MailReplyIcon returns a resource containing the standard mail reply icon for the current theme

func MailSendIcon Uses

func MailSendIcon() fyne.Resource

MailSendIcon returns a resource containing the standard mail send icon for the current theme

func MenuDropDownIcon() fyne.Resource

MenuDropDownIcon returns a resource containing the standard menu drop down icon for the current theme

func MenuDropUpIcon() fyne.Resource

MenuDropUpIcon returns a resource containing the standard menu drop up icon for the current theme

func MoveDownIcon Uses

func MoveDownIcon() fyne.Resource

MoveDownIcon returns a resource containing the standard down arrow icon for the current theme

func MoveUpIcon Uses

func MoveUpIcon() fyne.Resource

MoveUpIcon returns a resource containing the standard up arrow icon for the current theme

func NavigateBackIcon() fyne.Resource

NavigateBackIcon returns a resource containing the standard backward navigation icon for the current theme

func NavigateNextIcon() fyne.Resource

NavigateNextIcon returns a resource containing the standard forward navigation icon for the current theme

func Padding Uses

func Padding() int

Padding is the standard gap between elements and the border around interface elements

func PlaceHolderColor Uses

func PlaceHolderColor() color.Color

PlaceHolderColor returns the theme's standard text colour

func PrimaryColor Uses

func PrimaryColor() color.Color

PrimaryColor returns the colour used to highlight primary features

func QuestionIcon Uses

func QuestionIcon() fyne.Resource

QuestionIcon returns a resource containing the standard dialog question icon for the current theme

func RadioButtonCheckedIcon Uses

func RadioButtonCheckedIcon() fyne.Resource

RadioButtonCheckedIcon returns a resource containing the standard radio button checked icon for the current theme

func RadioButtonIcon Uses

func RadioButtonIcon() fyne.Resource

RadioButtonIcon returns a resource containing the standard radio button icon for the current theme

func ScrollBarColor Uses

func ScrollBarColor() color.Color

ScrollBarColor returns the color (and translucency) for a scrollBar

func ScrollBarSize Uses

func ScrollBarSize() int

ScrollBarSize is the width (or height) of the bars on a ScrollContainer

func ScrollBarSmallSize Uses

func ScrollBarSmallSize() int

ScrollBarSmallSize is the width (or height) of the minimized bars on a ScrollContainer

func SearchIcon Uses

func SearchIcon() fyne.Resource

SearchIcon returns a resource containing the standard search icon for the current theme

func SearchReplaceIcon Uses

func SearchReplaceIcon() fyne.Resource

SearchReplaceIcon returns a resource containing the standard search and replace icon for the current theme

func SettingsIcon Uses

func SettingsIcon() fyne.Resource

SettingsIcon returns a resource containing the standard settings icon for the current theme

func ShadowColor Uses

func ShadowColor() color.Color

ShadowColor returns the color (and translucency) for shadows used for indicating elevation

func TextBoldFont Uses

func TextBoldFont() fyne.Resource

TextBoldFont retutns the font resource for the bold font style

func TextBoldItalicFont Uses

func TextBoldItalicFont() fyne.Resource

TextBoldItalicFont returns the font resource for the bold and italic font style

func TextColor Uses

func TextColor() color.Color

TextColor returns the theme's standard text colour

func TextFont Uses

func TextFont() fyne.Resource

TextFont returns the font resource for the regular font style

func TextItalicFont Uses

func TextItalicFont() fyne.Resource

TextItalicFont returns the font resource for the italic font style

func TextMonospaceFont Uses

func TextMonospaceFont() fyne.Resource

TextMonospaceFont retutns the font resource for the monospace font face

func TextSize Uses

func TextSize() int

TextSize returns the standard text size

func ViewFullScreenIcon Uses

func ViewFullScreenIcon() fyne.Resource

ViewFullScreenIcon returns a resource containing the standard fullscreen icon for the current theme

func ViewRefreshIcon Uses

func ViewRefreshIcon() fyne.Resource

ViewRefreshIcon returns a resource containing the standard refresh icon for the current theme

func ViewRestoreIcon Uses

func ViewRestoreIcon() fyne.Resource

ViewRestoreIcon returns a resource containing the standard exit fullscreen icon for the current theme

func WarningIcon Uses

func WarningIcon() fyne.Resource

WarningIcon returns a resource containing the standard dialog warning icon for the current theme

func ZoomFitIcon Uses

func ZoomFitIcon() fyne.Resource

ZoomFitIcon returns a resource containing the standard zoom fit icon for the current theme

func ZoomInIcon Uses

func ZoomInIcon() fyne.Resource

ZoomInIcon returns a resource containing the standard zoom in icon for the current theme

func ZoomOutIcon Uses

func ZoomOutIcon() fyne.Resource

ZoomOutIcon returns a resource containing the standard zoom out icon for the current theme

type DisabledResource Uses

type DisabledResource struct {
    // contains filtered or unexported fields
}

DisabledResource is a resource wrapper that will return an appropriate resource colorized by the current theme's `DisabledIconColor` color.

func NewDisabledResource Uses

func NewDisabledResource(res fyne.Resource) *DisabledResource

NewDisabledResource creates a resource that adapts to the current theme's DisabledIconColor setting.

func (*DisabledResource) Content Uses

func (res *DisabledResource) Content() []byte

Content returns the disabled style content of the correct resource for the current theme

func (*DisabledResource) Name Uses

func (res *DisabledResource) Name() string

Name returns the resource source name prefixed with `disabled_` (used for caching)

type ThemedResource Uses

type ThemedResource struct {
    // contains filtered or unexported fields
}

ThemedResource is a resource wrapper that will return an appropriate resource for the currently selected theme.

func NewThemedResource Uses

func NewThemedResource(dark, light fyne.Resource) *ThemedResource

NewThemedResource creates a resource that adapts to the current theme setting. TODO: In version 2.0 we need to change this signature to just accept a single StaticResource pointer

func (*ThemedResource) Content Uses

func (res *ThemedResource) Content() []byte

Content returns the underlying content of the correct resource for the current theme

func (*ThemedResource) Name Uses

func (res *ThemedResource) Name() string

Name returns the underlying resource name (used for caching)

Package theme imports 12 packages (graph) and is imported by 9 packages. Updated 2019-06-21. Refresh now. Tools for package owners.