data

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2020 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FyneScene = NewThemedResource(fynescenedark, fynescenelight)

FyneScene contains the full fyne logo with background design

Functions

This section is empty.

Types

type ThemedResource

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

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

NewThemedResource creates a resource that adapts to the current theme setting.

func (*ThemedResource) Content

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

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

func (*ThemedResource) Name

func (res *ThemedResource) Name() string

Name returns the underlying resource name (used for caching)

Jump to

Keyboard shortcuts

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