On this page
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) *DisabledResourceNewDisabledResource creates a resource that adapts to the current theme’s DisabledColor setting.
func (*DisabledResource) Content
func (res *DisabledResource) Content() []byteContent returns the disabled style content of the correct resource for the current theme
func (*DisabledResource) Name
func (res *DisabledResource) Name() stringName returns the resource source name prefixed with disabled_ (used for caching)
func (*DisabledResource) ThemeColorName
func (res *DisabledResource) ThemeColorName() fyne.ThemeColorNameThemeColorName returns the fyne.ThemeColorName that is used as foreground color.
Since:
2.6