Fyne API "theme.InvertedThemedResource"

theme.InvertedThemedResource


import "fyne.io/fyne/theme"

Usage

type InvertedThemedResource

type InvertedThemedResource struct {
}

InvertedThemedResource is a resource wrapper that will return a version of the resource with the main color changed for use over highlighted elements.

func NewInvertedThemedResource

func NewInvertedThemedResource(orig fyne.Resource) *InvertedThemedResource

NewInvertedThemedResource creates a resource that adapts to the current theme for use over highlighted elements.

func (*InvertedThemedResource) Content

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

Content returns the underlying content of the resource adapted to the current background color.

func (*InvertedThemedResource) Name

func (res *InvertedThemedResource) Name() string

Name returns the underlying resource name (used for caching).

func (*InvertedThemedResource) Original

func (res *InvertedThemedResource) Original() fyne.Resource

Original returns the underlying resource that this inverted themed resource was adapted from