Fyne API "fyne.ThemedResource"

fyne.ThemedResource


import "fyne.io/fyne/v2"

Usage

type ThemedResource

type ThemedResource interface {
	Resource
	ThemeColorName() ThemeColorName
}

ThemedResource is a version of a resource that can be updated to match a certain theme colour. The ThemeColorName will be used to look up the color for the current theme and colorize the resource.

Since: 2.5