On this page
theme.InvertedThemedResource
import "fyne.io/fyne/v2/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) *InvertedThemedResourceNewInvertedThemedResource creates a resource that adapts to the current theme for use over highlighted elements.
func (*InvertedThemedResource) Content
func (res *InvertedThemedResource) Content() []byteContent returns the underlying content of the resource adapted to the current background color.
func (*InvertedThemedResource) Name
func (res *InvertedThemedResource) Name() stringName returns the underlying resource name (used for caching).
func (*InvertedThemedResource) Original
func (res *InvertedThemedResource) Original() fyne.ResourceOriginal returns the underlying resource that this inverted themed resource was adapted from
func (*InvertedThemedResource) ThemeColorName
func (res *InvertedThemedResource) ThemeColorName() fyne.ThemeColorNameThemeColorName returns the fyne.ThemeColorName that is used as foreground color.