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.ErrorThemedResource"
theme.ErrorThemedResource
import "fyne.io/fyne/v2/theme"
Usage
type ErrorThemedResource
type ErrorThemedResource struct {
}
ErrorThemedResource is a resource wrapper that will return a version of the resource with the main color changed to indicate an error.
func NewErrorThemedResource
func NewErrorThemedResource(orig fyne.Resource) *ErrorThemedResource
NewErrorThemedResource creates a resource that adapts to the error color for the current theme.
func (*ErrorThemedResource) Content
func (res *ErrorThemedResource) Content() []byte
Content returns the underlying content of the resource adapted to the current background color.
func (*ErrorThemedResource) Name
func (res *ErrorThemedResource) Name() string
Name returns the underlying resource name (used for caching).
func (*ErrorThemedResource) Original
func (res *ErrorThemedResource) Original() fyne.Resource
Original returns the underlying resource that this error themed resource was adapted from