package data
import "fyne.io/fyne/v2/cmd/fyne_demo/data"
Index ¶
Variables ¶
var FyneScene = NewThemedResource(resourceFynescenedarkPng, resourceFynescenelightPng)
FyneScene contains the full fyne logo with background design
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)
Source Files ¶
bundled.go icons.go
- Version
- v2.1.0-rc1
- Published
- Sep 12, 2021
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 46 minutes ago –
Tools for package owners.