Upgrade to v2.5
Fyne API v2.5
app
canvas
container
data/binding
data/validation
dialog
driver
driver/desktop
driver/mobile
driver/software
lang
layout
storage
storage/repository
test
theme
package theme
DisabledResource
ErrorThemedResource
InvertedThemedResource
PrimaryThemedResource
ThemedResource
widget
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)