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)
Click to show internal directories.
Click to hide internal directories.