package data
import "fyne.io/fyne/v2/cmd/fyne_demo/data"
Index ¶
Variables ¶
var FyneScene = NewThemedResource(fynescenedark, fynescenelight)
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-scene.go icons.go
- Version
- v2.0.3-rc2
- Published
- Apr 28, 2021
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 3 hours ago –
Tools for package owners.