Upgrade to v2.5
Fyne API v2.5
package fyne
Animation
AnimationCurve
App
AppMetadata
BuildType
Canvas
CanvasObject
Clipboard
CloudProvider
CloudProviderPreferences
CloudProviderStorage
Container
Delta
Device
DeviceOrientation
Disableable
DoubleTappable
DragEvent
Draggable
Driver
Focusable
HardwareKey
KeyboardShortcut
KeyEvent
KeyModifier
KeyName
Layout
LegacyTheme
Lifecycle
ListableURI
Locale
MainMenu
Menu
MenuItem
Notification
OverlayStack
PointEvent
Position
Preferences
Resource
Scrollable
ScrollEvent
SecondaryTappable
Settings
Shortcut
Shortcutable
ShortcutCopy
ShortcutCut
ShortcutHandler
ShortcutPaste
ShortcutRedo
ShortcutSelectAll
ShortcutUndo
Size
StaticResource
Storage
StringValidator
Tabbable
Tappable
TextAlign
TextStyle
TextTruncation
TextWrap
Theme
ThemeColorName
ThemedResource
ThemeIconName
ThemeSizeName
ThemeVariant
URI
URIReadCloser
URIWithIcon
URIWriteCloser
Validatable
Vector2
Widget
WidgetRenderer
Window
app
canvas
container
data/binding
data/validation
dialog
driver
driver/desktop
driver/mobile
driver/software
lang
layout
storage
storage/repository
test
theme
widget
Fyne API "fyne.LegacyTheme"
fyne.LegacyTheme
import "fyne.io/fyne/v2"
Usage
type LegacyTheme
type LegacyTheme interface {
BackgroundColor() color.Color
ButtonColor() color.Color
DisabledButtonColor() color.Color
TextColor() color.Color
DisabledTextColor() color.Color
PlaceHolderColor() color.Color
PrimaryColor() color.Color
HoverColor() color.Color
FocusColor() color.Color
ScrollBarColor() color.Color
ShadowColor() color.Color
TextSize() int
TextFont() Resource
TextBoldFont() Resource
TextItalicFont() Resource
TextBoldItalicFont() Resource
TextMonospaceFont() Resource
Padding() int
IconInlineSize() int
ScrollBarSize() int
ScrollBarSmallSize() int
}
LegacyTheme defines the requirements of any Fyne theme. This was previously called Theme and is kept for simpler transition of applications built before v2.0.0.
Since:
2.0