data

package
v2.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2021 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FyneScene = NewThemedResource(resourceFynescenedarkPng, resourceFynescenelightPng)

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