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)

func (*DisabledResource) ThemeColorName

  func (res *DisabledResource) ThemeColorName() fyne.ThemeColorName
  

ThemeColorName returns the fyne.ThemeColorName that is used as foreground color.

Since: 2.6