Fyne API "theme.DisabledResource"

theme.DisabledResource


import "fyne.io/fyne/v2/theme"

Usage

type DisabledResource

type DisabledResource struct {
}

DisabledResource is a resource wrapper that will return an appropriate resource colorized by the current theme’s DisabledColor color.

func NewDisabledResource

func NewDisabledResource(res fyne.Resource) *DisabledResource

NewDisabledResource creates a resource that adapts to the current theme’s DisabledColor setting.

func (*DisabledResource) Content

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

Content returns the disabled style content of the correct resource for the current theme

func (*DisabledResource) Name

func (res *DisabledResource) Name() string

Name returns the resource source name prefixed with disabled_ (used for caching)