theme (package)
import "fyne.io/fyne/v2/theme"Package theme defines how a Fyne app should look when rendered.
Usage
const (
// ColorRed is the red primary color name.
//
// Since: 1.4
ColorRed = internaltheme.ColorRed
// ColorOrange is the orange primary color name.
//
// Since: 1.4
ColorOrange = internaltheme.ColorOrange
// ColorYellow is the yellow primary color name.
//
// Since: 1.4
ColorYellow = internaltheme.ColorYellow
// ColorGreen is the green primary color name.
//
// Since: 1.4
ColorGreen = internaltheme.ColorGreen
// ColorBlue is the blue primary color name.
//
// Since: 1.4
ColorBlue = internaltheme.ColorBlue
// ColorPurple is the purple primary color name.
//
// Since: 1.4
ColorPurple = internaltheme.ColorPurple
// ColorBrown is the brown primary color name.
//
// Since: 1.4
ColorBrown = internaltheme.ColorBrown
// ColorGray is the gray primary color name.
//
// Since: 1.4
ColorGray = internaltheme.ColorGray
// ColorNameBackground is the name of theme lookup for background color.
//
// Since: 2.0
ColorNameBackground fyne.ThemeColorName = "background"
// ColorNameButton is the name of theme lookup for button color.
//
// Since: 2.0
ColorNameButton fyne.ThemeColorName = "button"
// ColorNameDisabledButton is the name of theme lookup for disabled button color.
//
// Since: 2.0
ColorNameDisabledButton fyne.ThemeColorName = "disabledButton"
// ColorNameDisabled is the name of theme lookup for disabled foreground color.
//
// Since: 2.0
ColorNameDisabled fyne.ThemeColorName = "disabled"
// ColorNameError is the name of theme lookup for error color.
//
// Since: 2.0
ColorNameError fyne.ThemeColorName = "error"
// ColorNameFocus is the name of theme lookup for focus color.
//
// Since: 2.0
ColorNameFocus fyne.ThemeColorName = "focus"
// ColorNameForeground is the name of theme lookup for foreground color.
//
// Since: 2.0
ColorNameForeground fyne.ThemeColorName = "foreground"
// ColorNameForegroundOnError is the name of theme lookup for a contrast color to the error color.
//
// Since: 2.5
ColorNameForegroundOnError fyne.ThemeColorName = "foregroundOnError"
// ColorNameForegroundOnPrimary is the name of theme lookup for a contrast color to the primary color.
//
// Since: 2.5
ColorNameForegroundOnPrimary fyne.ThemeColorName = "foregroundOnPrimary"
// ColorNameForegroundOnSuccess is the name of theme lookup for a contrast color to the success color.
//
// Since: 2.5
ColorNameForegroundOnSuccess fyne.ThemeColorName = "foregroundOnSuccess"
// ColorNameForegroundOnWarning is the name of theme lookup for a contrast color to the warning color.
//
// Since: 2.5
ColorNameForegroundOnWarning fyne.ThemeColorName = "foregroundOnWarning"
// ColorNameHeaderBackground is the name of theme lookup for background color of a collection header.
//
// Since: 2.4
ColorNameHeaderBackground fyne.ThemeColorName = "headerBackground"
// ColorNameHover is the name of theme lookup for hover color.
//
// Since: 2.0
ColorNameHover fyne.ThemeColorName = "hover"
// ColorNameHyperlink is the name of theme lookup for hyperlink color.
//
// Since: 2.4
ColorNameHyperlink fyne.ThemeColorName = "hyperlink"
// ColorNameInputBackground is the name of theme lookup for background color of an input field.
//
// Since: 2.0
ColorNameInputBackground fyne.ThemeColorName = "inputBackground"
// ColorNameInputBorder is the name of theme lookup for border color of an input field.
//
// Since: 2.3
ColorNameInputBorder fyne.ThemeColorName = "inputBorder"
// ColorNameMenuBackground is the name of theme lookup for background color of menus.
//
// Since: 2.3
ColorNameMenuBackground fyne.ThemeColorName = "menuBackground"
// ColorNameOverlayBackground is the name of theme lookup for background color of overlays like dialogs.
//
// Since: 2.3
ColorNameOverlayBackground fyne.ThemeColorName = "overlayBackground"
// ColorNamePlaceHolder is the name of theme lookup for placeholder text color.
//
// Since: 2.0
ColorNamePlaceHolder fyne.ThemeColorName = "placeholder"
// ColorNamePressed is the name of theme lookup for the tap overlay color.
//
// Since: 2.0
ColorNamePressed fyne.ThemeColorName = "pressed"
// ColorNamePrimary is the name of theme lookup for primary color.
//
// Since: 2.0
ColorNamePrimary fyne.ThemeColorName = "primary"
// ColorNameScrollBar is the name of theme lookup for scrollbar color.
//
// Since: 2.0
ColorNameScrollBar fyne.ThemeColorName = "scrollBar"
// ColorNameScrollBarBackground is the name of theme lookup for scrollbar background color.
//
// Since: 2.6
ColorNameScrollBarBackground fyne.ThemeColorName = "scrollBarBackground"
// ColorNameSelection is the name of theme lookup for selection color.
//
// Since: 2.1
ColorNameSelection fyne.ThemeColorName = "selection"
// ColorNameSeparator is the name of theme lookup for separator bars.
//
// Since: 2.3
ColorNameSeparator fyne.ThemeColorName = "separator"
// ColorNameShadow is the name of theme lookup for shadow color.
//
// Since: 2.0
ColorNameShadow fyne.ThemeColorName = "shadow"
// ColorNameSuccess is the name of theme lookup for success color.
//
// Since: 2.3
ColorNameSuccess fyne.ThemeColorName = "success"
// ColorNameWarning is the name of theme lookup for warning color.
//
// Since: 2.3
ColorNameWarning fyne.ThemeColorName = "warning"
)Keep in mind to add new constants to the tests at test/theme.go.
const (
// IconNameCancel is the name of theme lookup for cancel icon.
//
// Since: 2.0
IconNameCancel fyne.ThemeIconName = "cancel"
// IconNameConfirm is the name of theme lookup for confirm icon.
//
// Since: 2.0
IconNameConfirm fyne.ThemeIconName = "confirm"
// IconNameDelete is the name of theme lookup for delete icon.
//
// Since: 2.0
IconNameDelete fyne.ThemeIconName = "delete"
// IconNameSearch is the name of theme lookup for search icon.
//
// Since: 2.0
IconNameSearch fyne.ThemeIconName = "search"
// IconNameSearchReplace is the name of theme lookup for search and replace icon.
//
// Since: 2.0
IconNameSearchReplace fyne.ThemeIconName = "searchReplace"
// IconNameMenu is the name of theme lookup for menu icon.
//
// Since: 2.0
IconNameMenu fyne.ThemeIconName = "menu"
// IconNameMenuExpand is the name of theme lookup for menu expansion icon.
//
// Since: 2.0
IconNameMenuExpand fyne.ThemeIconName = "menuExpand"
// IconNameCheckButton is the name of theme lookup for unchecked check button icon.
//
// Since: 2.0
IconNameCheckButton fyne.ThemeIconName = "unchecked"
// IconNameCheckButtonChecked is the name of theme lookup for checked check button icon.
//
// Since: 2.0
IconNameCheckButtonChecked fyne.ThemeIconName = "checked"
// IconNameCheckButtonFill is the name of theme lookup for filled check button icon.
//
// Since: 2.5
IconNameCheckButtonFill fyne.ThemeIconName = "iconNameCheckButtonFill"
// IconNameCheckButtonPartial is the name of theme lookup for "partially" checked check button icon.
//
// Since: 2.6
IconNameCheckButtonPartial fyne.ThemeIconName = "partial"
// IconNameRadioButton is the name of theme lookup for radio button unchecked icon.
//
// Since: 2.0
IconNameRadioButton fyne.ThemeIconName = "radioButton"
// IconNameRadioButtonChecked is the name of theme lookup for radio button checked icon.
//
// Since: 2.0
IconNameRadioButtonChecked fyne.ThemeIconName = "radioButtonChecked"
// IconNameRadioButtonFill is the name of theme lookup for filled radio button icon.
//
// Since: 2.5
IconNameRadioButtonFill fyne.ThemeIconName = "iconNameRadioButtonFill"
// IconNameColorAchromatic is the name of theme lookup for greyscale color icon.
//
// Since: 2.0
IconNameColorAchromatic fyne.ThemeIconName = "colorAchromatic"
// IconNameColorChromatic is the name of theme lookup for full color icon.
//
// Since: 2.0
IconNameColorChromatic fyne.ThemeIconName = "colorChromatic"
// IconNameColorPalette is the name of theme lookup for color palette icon.
//
// Since: 2.0
IconNameColorPalette fyne.ThemeIconName = "colorPalette"
// IconNameContentAdd is the name of theme lookup for content add icon.
//
// Since: 2.0
IconNameContentAdd fyne.ThemeIconName = "contentAdd"
// IconNameContentRemove is the name of theme lookup for content remove icon.
//
// Since: 2.0
IconNameContentRemove fyne.ThemeIconName = "contentRemove"
// IconNameContentCut is the name of theme lookup for content cut icon.
//
// Since: 2.0
IconNameContentCut fyne.ThemeIconName = "contentCut"
// IconNameContentCopy is the name of theme lookup for content copy icon.
//
// Since: 2.0
IconNameContentCopy fyne.ThemeIconName = "contentCopy"
// IconNameContentPaste is the name of theme lookup for content paste icon.
//
// Since: 2.0
IconNameContentPaste fyne.ThemeIconName = "contentPaste"
// IconNameContentClear is the name of theme lookup for content clear icon.
//
// Since: 2.0
IconNameContentClear fyne.ThemeIconName = "contentClear"
// IconNameContentRedo is the name of theme lookup for content redo icon.
//
// Since: 2.0
IconNameContentRedo fyne.ThemeIconName = "contentRedo"
// IconNameContentUndo is the name of theme lookup for content undo icon.
//
// Since: 2.0
IconNameContentUndo fyne.ThemeIconName = "contentUndo"
// IconNameInfo is the name of theme lookup for info icon.
//
// Since: 2.0
IconNameInfo fyne.ThemeIconName = "info"
// IconNameQuestion is the name of theme lookup for question icon.
//
// Since: 2.0
IconNameQuestion fyne.ThemeIconName = "question"
// IconNameWarning is the name of theme lookup for warning icon.
//
// Since: 2.0
IconNameWarning fyne.ThemeIconName = "warning"
// IconNameError is the name of theme lookup for error icon.
//
// Since: 2.0
IconNameError fyne.ThemeIconName = "error"
// IconNameBrokenImage is the name of the theme lookup for broken-image icon.
//
// Since: 2.4
IconNameBrokenImage fyne.ThemeIconName = "broken-image"
// IconNameDocument is the name of theme lookup for document icon.
//
// Since: 2.0
IconNameDocument fyne.ThemeIconName = "document"
// IconNameDocumentCreate is the name of theme lookup for document create icon.
//
// Since: 2.0
IconNameDocumentCreate fyne.ThemeIconName = "documentCreate"
// IconNameDocumentPrint is the name of theme lookup for document print icon.
//
// Since: 2.0
IconNameDocumentPrint fyne.ThemeIconName = "documentPrint"
// IconNameDocumentSave is the name of theme lookup for document save icon.
//
// Since: 2.0
IconNameDocumentSave fyne.ThemeIconName = "documentSave"
// IconNameDragCornerIndicator is the name of the icon used in inner windows to indicate a draggable corner.
//
// Since: 2.5
IconNameDragCornerIndicator fyne.ThemeIconName = "dragCornerIndicator"
// IconNameMoreHorizontal is the name of theme lookup for horizontal more.
//
// Since 2.0
IconNameMoreHorizontal fyne.ThemeIconName = "moreHorizontal"
// IconNameMoreVertical is the name of theme lookup for vertical more.
//
// Since 2.0
IconNameMoreVertical fyne.ThemeIconName = "moreVertical"
// IconNameMailAttachment is the name of theme lookup for mail attachment icon.
//
// Since: 2.0
IconNameMailAttachment fyne.ThemeIconName = "mailAttachment"
// IconNameMailCompose is the name of theme lookup for mail compose icon.
//
// Since: 2.0
IconNameMailCompose fyne.ThemeIconName = "mailCompose"
// IconNameMailForward is the name of theme lookup for mail forward icon.
//
// Since: 2.0
IconNameMailForward fyne.ThemeIconName = "mailForward"
// IconNameMailReply is the name of theme lookup for mail reply icon.
//
// Since: 2.0
IconNameMailReply fyne.ThemeIconName = "mailReply"
// IconNameMailReplyAll is the name of theme lookup for mail reply-all icon.
//
// Since: 2.0
IconNameMailReplyAll fyne.ThemeIconName = "mailReplyAll"
// IconNameMailSend is the name of theme lookup for mail send icon.
//
// Since: 2.0
IconNameMailSend fyne.ThemeIconName = "mailSend"
// IconNameMediaMusic is the name of theme lookup for media music icon.
//
// Since: 2.1
IconNameMediaMusic fyne.ThemeIconName = "mediaMusic"
// IconNameMediaPhoto is the name of theme lookup for media photo icon.
//
// Since: 2.1
IconNameMediaPhoto fyne.ThemeIconName = "mediaPhoto"
// IconNameMediaVideo is the name of theme lookup for media video icon.
//
// Since: 2.1
IconNameMediaVideo fyne.ThemeIconName = "mediaVideo"
// IconNameMediaFastForward is the name of theme lookup for media fast-forward icon.
//
// Since: 2.0
IconNameMediaFastForward fyne.ThemeIconName = "mediaFastForward"
// IconNameMediaFastRewind is the name of theme lookup for media fast-rewind icon.
//
// Since: 2.0
IconNameMediaFastRewind fyne.ThemeIconName = "mediaFastRewind"
// IconNameMediaPause is the name of theme lookup for media pause icon.
//
// Since: 2.0
IconNameMediaPause fyne.ThemeIconName = "mediaPause"
// IconNameMediaPlay is the name of theme lookup for media play icon.
//
// Since: 2.0
IconNameMediaPlay fyne.ThemeIconName = "mediaPlay"
// IconNameMediaRecord is the name of theme lookup for media record icon.
//
// Since: 2.0
IconNameMediaRecord fyne.ThemeIconName = "mediaRecord"
// IconNameMediaReplay is the name of theme lookup for media replay icon.
//
// Since: 2.0
IconNameMediaReplay fyne.ThemeIconName = "mediaReplay"
// IconNameMediaSkipNext is the name of theme lookup for media skip next icon.
//
// Since: 2.0
IconNameMediaSkipNext fyne.ThemeIconName = "mediaSkipNext"
// IconNameMediaSkipPrevious is the name of theme lookup for media skip previous icon.
//
// Since: 2.0
IconNameMediaSkipPrevious fyne.ThemeIconName = "mediaSkipPrevious"
// IconNameMediaStop is the name of theme lookup for media stop icon.
//
// Since: 2.0
IconNameMediaStop fyne.ThemeIconName = "mediaStop"
// IconNameMoveDown is the name of theme lookup for move down icon.
//
// Since: 2.0
IconNameMoveDown fyne.ThemeIconName = "arrowDown"
// IconNameMoveUp is the name of theme lookup for move up icon.
//
// Since: 2.0
IconNameMoveUp fyne.ThemeIconName = "arrowUp"
// IconNameNavigateBack is the name of theme lookup for navigate back icon.
//
// Since: 2.0
IconNameNavigateBack fyne.ThemeIconName = "arrowBack"
// IconNameNavigateNext is the name of theme lookup for navigate next icon.
//
// Since: 2.0
IconNameNavigateNext fyne.ThemeIconName = "arrowForward"
// IconNameArrowDropDown is the name of theme lookup for drop-down arrow icon.
//
// Since: 2.0
IconNameArrowDropDown fyne.ThemeIconName = "arrowDropDown"
// IconNameArrowDropUp is the name of theme lookup for drop-up arrow icon.
//
// Since: 2.0
IconNameArrowDropUp fyne.ThemeIconName = "arrowDropUp"
// IconNameFile is the name of theme lookup for file icon.
//
// Since: 2.0
IconNameFile fyne.ThemeIconName = "file"
// IconNameFileApplication is the name of theme lookup for file application icon.
//
// Since: 2.0
IconNameFileApplication fyne.ThemeIconName = "fileApplication"
// IconNameFileAudio is the name of theme lookup for file audio icon.
//
// Since: 2.0
IconNameFileAudio fyne.ThemeIconName = "fileAudio"
// IconNameFileImage is the name of theme lookup for file image icon.
//
// Since: 2.0
IconNameFileImage fyne.ThemeIconName = "fileImage"
// IconNameFileText is the name of theme lookup for file text icon.
//
// Since: 2.0
IconNameFileText fyne.ThemeIconName = "fileText"
// IconNameFileVideo is the name of theme lookup for file video icon.
//
// Since: 2.0
IconNameFileVideo fyne.ThemeIconName = "fileVideo"
// IconNameFolder is the name of theme lookup for folder icon.
//
// Since: 2.0
IconNameFolder fyne.ThemeIconName = "folder"
// IconNameFolderNew is the name of theme lookup for folder new icon.
//
// Since: 2.0
IconNameFolderNew fyne.ThemeIconName = "folderNew"
// IconNameFolderOpen is the name of theme lookup for folder open icon.
//
// Since: 2.0
IconNameFolderOpen fyne.ThemeIconName = "folderOpen"
// IconNameHelp is the name of theme lookup for help icon.
//
// Since: 2.0
IconNameHelp fyne.ThemeIconName = "help"
// IconNameHistory is the name of theme lookup for history icon.
//
// Since: 2.0
IconNameHistory fyne.ThemeIconName = "history"
// IconNameHome is the name of theme lookup for home icon.
//
// Since: 2.0
IconNameHome fyne.ThemeIconName = "home"
// IconNameSettings is the name of theme lookup for settings icon.
//
// Since: 2.0
IconNameSettings fyne.ThemeIconName = "settings"
// IconNameStorage is the name of theme lookup for storage icon.
//
// Since: 2.0
IconNameStorage fyne.ThemeIconName = "storage"
// IconNameUpload is the name of theme lookup for upload icon.
//
// Since: 2.0
IconNameUpload fyne.ThemeIconName = "upload"
// IconNameViewFullScreen is the name of theme lookup for view fullscreen icon.
//
// Since: 2.0
IconNameViewFullScreen fyne.ThemeIconName = "viewFullScreen"
// IconNameViewRefresh is the name of theme lookup for view refresh icon.
//
// Since: 2.0
IconNameViewRefresh fyne.ThemeIconName = "viewRefresh"
// IconNameViewZoomFit is the name of theme lookup for view zoom fit icon.
//
// Since: 2.0
IconNameViewZoomFit fyne.ThemeIconName = "viewZoomFit"
// IconNameViewZoomIn is the name of theme lookup for view zoom in icon.
//
// Since: 2.0
IconNameViewZoomIn fyne.ThemeIconName = "viewZoomIn"
// IconNameViewZoomOut is the name of theme lookup for view zoom out icon.
//
// Since: 2.0
IconNameViewZoomOut fyne.ThemeIconName = "viewZoomOut"
// IconNameViewRestore is the name of theme lookup for view restore icon.
//
// Since: 2.0
IconNameViewRestore fyne.ThemeIconName = "viewRestore"
// IconNameVisibility is the name of theme lookup for visibility icon.
//
// Since: 2.0
IconNameVisibility fyne.ThemeIconName = "visibility"
// IconNameVisibilityOff is the name of theme lookup for invisibility icon.
//
// Since: 2.0
IconNameVisibilityOff fyne.ThemeIconName = "visibilityOff"
// IconNameVolumeDown is the name of theme lookup for volume down icon.
//
// Since: 2.0
IconNameVolumeDown fyne.ThemeIconName = "volumeDown"
// IconNameVolumeMute is the name of theme lookup for volume mute icon.
//
// Since: 2.0
IconNameVolumeMute fyne.ThemeIconName = "volumeMute"
// IconNameVolumeUp is the name of theme lookup for volume up icon.
//
// Since: 2.0
IconNameVolumeUp fyne.ThemeIconName = "volumeUp"
// IconNameDownload is the name of theme lookup for download icon.
//
// Since: 2.0
IconNameDownload fyne.ThemeIconName = "download"
// IconNameComputer is the name of theme lookup for computer icon.
//
// Since: 2.0
IconNameComputer fyne.ThemeIconName = "computer"
// IconNameDesktop is the name of theme lookup for desktop icon.
//
// Since: 2.5
IconNameDesktop fyne.ThemeIconName = "desktop"
// IconNameAccount is the name of theme lookup for account icon.
//
// Since: 2.1
IconNameAccount fyne.ThemeIconName = "account"
// IconNameCalendar is the name of theme lookup for calendar icon.
//
// Since: 2.6
IconNameCalendar fyne.ThemeIconName = "calendar"
// IconNameLogin is the name of theme lookup for login icon.
//
// Since: 2.1
IconNameLogin fyne.ThemeIconName = "login"
// IconNameLogout is the name of theme lookup for logout icon.
//
// Since: 2.1
IconNameLogout fyne.ThemeIconName = "logout"
// IconNameList is the name of theme lookup for list icon.
//
// Since: 2.1
IconNameList fyne.ThemeIconName = "list"
// IconNameGrid is the name of theme lookup for grid icon.
//
// Since: 2.1
IconNameGrid fyne.ThemeIconName = "grid"
// IconNameWindowClose is the name of theme lookup for window close icon.
//
// Since: 2.5
IconNameWindowClose fyne.ThemeIconName = "windowClose"
// IconNameWindowMaximize is the name of theme lookup for window maximize icon.
//
// Since: 2.5
IconNameWindowMaximize fyne.ThemeIconName = "windowMaximize"
// IconNameWindowMinimize is the name of theme lookup for window minimize icon.
//
// Since: 2.5
IconNameWindowMinimize fyne.ThemeIconName = "windowMinimize"
)const (
// SizeNameCaptionText is the name of theme lookup for helper text size, normally smaller than regular text size.
//
// Since: 2.0
SizeNameCaptionText fyne.ThemeSizeName = "helperText"
// SizeNameInlineIcon is the name of theme lookup for inline icons size.
//
// Since: 2.0
SizeNameInlineIcon fyne.ThemeSizeName = "iconInline"
// SizeNameInnerPadding is the name of theme lookup for internal widget padding size.
//
// Since: 2.3
SizeNameInnerPadding fyne.ThemeSizeName = "innerPadding"
// SizeNameLineSpacing is the name of theme lookup for between text line spacing.
//
// Since: 2.3
SizeNameLineSpacing fyne.ThemeSizeName = "lineSpacing"
// SizeNamePadding is the name of theme lookup for padding size.
//
// Since: 2.0
SizeNamePadding fyne.ThemeSizeName = "padding"
// SizeNameScrollBar is the name of theme lookup for the scrollbar size.
//
// Since: 2.0
SizeNameScrollBar fyne.ThemeSizeName = "scrollBar"
// SizeNameScrollBarSmall is the name of theme lookup for the shrunk scrollbar size.
//
// Since: 2.0
SizeNameScrollBarSmall fyne.ThemeSizeName = "scrollBarSmall"
// SizeNameSeparatorThickness is the name of theme lookup for the thickness of a separator.
//
// Since: 2.0
SizeNameSeparatorThickness fyne.ThemeSizeName = "separator"
// SizeNameText is the name of theme lookup for text size.
//
// Since: 2.0
SizeNameText fyne.ThemeSizeName = "text"
// SizeNameHeadingText is the name of theme lookup for text size of a heading.
//
// Since: 2.1
SizeNameHeadingText fyne.ThemeSizeName = "headingText"
// SizeNameSubHeadingText is the name of theme lookup for text size of a sub-heading.
//
// Since: 2.1
SizeNameSubHeadingText fyne.ThemeSizeName = "subHeadingText"
// SizeNameInputBorder is the name of theme lookup for input border size.
//
// Since: 2.0
SizeNameInputBorder fyne.ThemeSizeName = "inputBorder"
// SizeNameInputRadius is the name of theme lookup for input corner radius.
//
// Since: 2.4
SizeNameInputRadius fyne.ThemeSizeName = "inputRadius"
// SizeNameSelectionRadius is the name of theme lookup for selection corner radius.
//
// Since: 2.4
SizeNameSelectionRadius fyne.ThemeSizeName = "selectionRadius"
// SizeNameScrollBarRadius is the name of theme lookup for the scroll bar corner radius.
//
// Since: 2.5
SizeNameScrollBarRadius fyne.ThemeSizeName = "scrollBarRadius"
// SizeNameWindowButtonHeight is the name of the height for an inner window titleBar button.
//
// Since: 2.6
SizeNameWindowButtonHeight fyne.ThemeSizeName = "windowButtonHeight"
// SizeNameWindowButtonRadius is the name of the radius for an inner window titleBar button.
//
// Since: 2.6
SizeNameWindowButtonRadius fyne.ThemeSizeName = "windowButtonRadius"
// SizeNameWindowButtonIcon is the name of the width of an inner window titleBar button.
//
// Since: 2.6
SizeNameWindowButtonIcon fyne.ThemeSizeName = "windowButtonIcon"
// SizeNameWindowTitleBarHeight is the height for inner window titleBars.
//
// Since: 2.6
SizeNameWindowTitleBarHeight fyne.ThemeSizeName = "windowTitleBarHeight"
)const (
// VariantDark is the version of a theme that satisfies a user preference for a dark look.
//
// Since: 2.0
VariantDark = internaltheme.VariantDark
// VariantLight is the version of a theme that satisfies a user preference for a light look.
//
// Since: 2.0
VariantLight = internaltheme.VariantLight
)Keep in mind to add new constants to the tests at test/theme.go.
func AccountIcon
func AccountIcon() fyne.ResourceAccountIcon returns a resource containing the standard account icon for the current theme
func BackgroundColor
func BackgroundColor() color.ColorBackgroundColor returns the theme’s background color.
func BrokenImageIcon
func BrokenImageIcon() fyne.ResourceBrokenImageIcon returns a resource containing an icon to specify a broken or missing image
2.4func ButtonColor
func ButtonColor() color.ColorButtonColor returns the theme’s standard button color.
func CalendarIcon
func CalendarIcon() fyne.ResourceCalendarIcon returns a resource containing the standard account icon for the current theme
2.6func CancelIcon
func CancelIcon() fyne.ResourceCancelIcon returns a resource containing the standard cancel icon for the current theme
func CaptionTextSize
func CaptionTextSize() float32CaptionTextSize returns the size for caption text.
func CheckButtonCheckedIcon
func CheckButtonCheckedIcon() fyne.ResourceCheckButtonCheckedIcon returns a resource containing the standard checkbox checked icon for the current theme
func CheckButtonFillIcon
func CheckButtonFillIcon() fyne.ResourceCheckButtonFillIcon returns a resource containing the filled checkbox icon for the current theme.
2.5func CheckButtonIcon
func CheckButtonIcon() fyne.ResourceCheckButtonIcon returns a resource containing the standard checkbox icon for the current theme
func Color
func Color(name fyne.ThemeColorName) color.ColorColor looks up the named colour for current theme and variant.
2.5func ColorAchromaticIcon
func ColorAchromaticIcon() fyne.ResourceColorAchromaticIcon returns a resource containing the standard achromatic color icon for the current theme
func ColorChromaticIcon
func ColorChromaticIcon() fyne.ResourceColorChromaticIcon returns a resource containing the standard chromatic color icon for the current theme
func ColorForWidget
func ColorForWidget(name fyne.ThemeColorName, w fyne.Widget) color.ColorColorForWidget looks up the named colour for the requested widget using the current theme and variant. If the widget theme has been overridden that theme will be used.
2.5func ColorPaletteIcon
func ColorPaletteIcon() fyne.ResourceColorPaletteIcon returns a resource containing the standard color palette icon for the current theme
func ComputerIcon
func ComputerIcon() fyne.ResourceComputerIcon returns a resource containing the standard computer icon for the current theme
func ConfirmIcon
func ConfirmIcon() fyne.ResourceConfirmIcon returns a resource containing the standard confirm icon for the current theme
func ContentAddIcon
func ContentAddIcon() fyne.ResourceContentAddIcon returns a resource containing the standard content add icon for the current theme
func ContentClearIcon
func ContentClearIcon() fyne.ResourceContentClearIcon returns a resource containing the standard content clear icon for the current theme
func ContentCopyIcon
func ContentCopyIcon() fyne.ResourceContentCopyIcon returns a resource containing the standard content copy icon for the current theme
func ContentCutIcon
func ContentCutIcon() fyne.ResourceContentCutIcon returns a resource containing the standard content cut icon for the current theme
func ContentPasteIcon
func ContentPasteIcon() fyne.ResourceContentPasteIcon returns a resource containing the standard content paste icon for the current theme
func ContentRedoIcon
func ContentRedoIcon() fyne.ResourceContentRedoIcon returns a resource containing the standard content redo icon for the current theme
func ContentRemoveIcon
func ContentRemoveIcon() fyne.ResourceContentRemoveIcon returns a resource containing the standard content remove icon for the current theme
func ContentUndoIcon
func ContentUndoIcon() fyne.ResourceContentUndoIcon returns a resource containing the standard content undo icon for the current theme
func Current
func Current() fyne.ThemeCurrent returns the theme that is currently used for the running application. It looks up based on user preferences and application configuration.
2.5func CurrentForWidget
func CurrentForWidget(w fyne.CanvasObject) fyne.ThemeCurrentForWidget returns the theme that is currently used for the specified widget. It looks for widget overrides and falls back to the application’s current theme.
2.5func DarkTheme
func DarkTheme() fyne.ThemeDarkTheme defines the built-in dark theme colors and sizes.
func DefaultEmojiFont
func DefaultEmojiFont() fyne.ResourceDefaultEmojiFont returns the font resource for the built-in emoji font. This may return nil if the application was packaged without an emoji font.
2.4func DefaultSymbolFont
func DefaultSymbolFont() fyne.ResourceDefaultSymbolFont returns the font resource for the built-in symbol font.
2.2func DefaultTextBoldFont
func DefaultTextBoldFont() fyne.ResourceDefaultTextBoldFont returns the font resource for the built-in bold font style.
func DefaultTextBoldItalicFont
func DefaultTextBoldItalicFont() fyne.ResourceDefaultTextBoldItalicFont returns the font resource for the built-in bold and italic font style.
func DefaultTextFont
func DefaultTextFont() fyne.ResourceDefaultTextFont returns the font resource for the built-in regular font style.
func DefaultTextItalicFont
func DefaultTextItalicFont() fyne.ResourceDefaultTextItalicFont returns the font resource for the built-in italic font style.
func DefaultTextMonospaceFont
func DefaultTextMonospaceFont() fyne.ResourceDefaultTextMonospaceFont returns the font resource for the built-in monospace font face.
func DefaultTheme
func DefaultTheme() fyne.ThemeDefaultTheme returns a built-in theme that can adapt to the user preference of light or dark colors.
2.0func DeleteIcon
func DeleteIcon() fyne.ResourceDeleteIcon returns a resource containing the standard delete icon for the current theme
func DesktopIcon
func DesktopIcon() fyne.ResourceDesktopIcon returns a resource containing the standard desktop icon for the current theme
func DisabledButtonColor
func DisabledButtonColor() color.ColorDisabledButtonColor returns the theme’s disabled button color.
func DisabledColor
func DisabledColor() color.ColorDisabledColor returns the foreground color for a disabled UI element.
2.0func DisabledTextColor
func DisabledTextColor() color.ColorDisabledTextColor returns the theme’s disabled text color - this is actually the disabled color since 1.4.
func DocumentCreateIcon
func DocumentCreateIcon() fyne.ResourceDocumentCreateIcon returns a resource containing the standard document create icon for the current theme
func DocumentIcon
func DocumentIcon() fyne.ResourceDocumentIcon returns a resource containing the standard document icon for the current theme
func DocumentPrintIcon
func DocumentPrintIcon() fyne.ResourceDocumentPrintIcon returns a resource containing the standard document print icon for the current theme
func DocumentSaveIcon
func DocumentSaveIcon() fyne.ResourceDocumentSaveIcon returns a resource containing the standard document save icon for the current theme
func DownloadIcon
func DownloadIcon() fyne.ResourceDownloadIcon returns a resource containing the standard download icon for the current theme
func ErrorColor
func ErrorColor() color.ColorErrorColor returns the theme’s error foreground color.
2.0func ErrorIcon
func ErrorIcon() fyne.ResourceErrorIcon returns a resource containing the standard dialog error icon for the current theme
func FileApplicationIcon
func FileApplicationIcon() fyne.ResourceFileApplicationIcon returns a resource containing the file icon representing application files for the current theme
func FileAudioIcon
func FileAudioIcon() fyne.ResourceFileAudioIcon returns a resource containing the file icon representing audio files for the current theme
func FileIcon
func FileIcon() fyne.ResourceFileIcon returns a resource containing the appropriate file icon for the current theme
func FileImageIcon
func FileImageIcon() fyne.ResourceFileImageIcon returns a resource containing the file icon representing image files for the current theme
func FileTextIcon
func FileTextIcon() fyne.ResourceFileTextIcon returns a resource containing the file icon representing text files for the current theme
func FileVideoIcon
func FileVideoIcon() fyne.ResourceFileVideoIcon returns a resource containing the file icon representing video files for the current theme
func FocusColor
func FocusColor() color.ColorFocusColor returns the color used to highlight a focused widget.
func FolderIcon
func FolderIcon() fyne.ResourceFolderIcon returns a resource containing the standard folder icon for the current theme
func FolderNewIcon
func FolderNewIcon() fyne.ResourceFolderNewIcon returns a resource containing the standard folder creation icon for the current theme
func FolderOpenIcon
func FolderOpenIcon() fyne.ResourceFolderOpenIcon returns a resource containing the standard folder open icon for the current theme
func Font
func Font(style fyne.TextStyle) fyne.ResourceFont looks up the font for current theme and text style.
2.5func ForegroundColor
func ForegroundColor() color.ColorForegroundColor returns the theme’s standard foreground color for text and icons.
2.0func FromJSON
func FromJSON(data string) (fyne.Theme, error)FromJSON returns a Theme created from the given JSON metadata. Any values not present in the data will fall back to the default theme. If a parse error occurs it will be returned along with a default theme.
2.2func FromJSONReader
func FromJSONReader(r io.Reader) (fyne.Theme, error)FromJSONReader returns a Theme created from the given JSON metadata through the reader. Any values not present in the data will fall back to the default theme. If a parse error occurs it will be returned along with a default theme.
2.2func FromJSONReaderWithFallback
func FromJSONReaderWithFallback(r io.Reader, fallback fyne.Theme) (fyne.Theme, error)FromJSONReaderWithFallback returns a Theme created from the given JSON metadata through the reader. Any values not present in the data will fall back to the specified theme. If a parse error occurs it will be returned along with a specified fallback theme.
2.7func FromJSONWithFallback
func FromJSONWithFallback(data string, fallback fyne.Theme) (fyne.Theme, error)FromJSONWithFallback returns a Theme created from the given JSON metadata. Any values not present in the data will fall back to the specified theme. If a parse error occurs it will be returned along with a specified fallback theme.
2.7func FromLegacy
func FromLegacy(t fyne.LegacyTheme) fyne.ThemeFromLegacy returns a 2.0 Theme created from the given LegacyTheme data. This is a transition path and will be removed in the future (probably version 3.0).
2.0func FyneLogo
func FyneLogo() fyne.ResourceFyneLogo returns a resource containing the Fyne logo.
func GridIcon
func GridIcon() fyne.ResourceGridIcon returns a resource containing the standard grid icon for the current theme
func HeaderBackgroundColor
func HeaderBackgroundColor() color.ColorHeaderBackgroundColor returns the color used to draw underneath collection headers.
2.4func HelpIcon
func HelpIcon() fyne.ResourceHelpIcon returns a resource containing the standard help icon for the current theme
func HistoryIcon
func HistoryIcon() fyne.ResourceHistoryIcon returns a resource containing the standard history icon for the current theme
func HomeIcon
func HomeIcon() fyne.ResourceHomeIcon returns a resource containing the standard home folder icon for the current theme
func HoverColor
func HoverColor() color.ColorHoverColor returns the color used to highlight interactive elements currently under a cursor.
func HyperlinkColor
func HyperlinkColor() color.ColorHyperlinkColor returns the color used for the Hyperlink widget and hyperlink text elements.
func Icon
func Icon(name fyne.ThemeIconName) fyne.ResourceIcon looks up the specified icon for current theme.
2.5func IconForWidget
func IconForWidget(name fyne.ThemeIconName, w fyne.Widget) fyne.ResourceIconForWidget looks up the specified icon for requested widget using the current theme. If the widget theme has been overridden that theme will be used.
2.5func IconInlineSize
func IconInlineSize() float32IconInlineSize is the standard size of icons which appear within buttons, labels etc.
func InfoIcon
func InfoIcon() fyne.ResourceInfoIcon returns a resource containing the standard dialog info icon for the current theme
func InnerPadding
func InnerPadding() float32InnerPadding is the standard gap between element content and the outside edge of a widget.
2.3func InputBackgroundColor
func InputBackgroundColor() color.ColorInputBackgroundColor returns the color used to draw underneath input elements.
func InputBorderColor
func InputBorderColor() color.ColorInputBorderColor returns the color used to draw underneath input elements.
2.3func InputBorderSize
func InputBorderSize() float32InputBorderSize returns the input border size (or underline size for an entry).
2.0func InputRadiusSize
func InputRadiusSize() float32InputRadiusSize returns the input radius size.
2.4func LightTheme
func LightTheme() fyne.ThemeLightTheme defines the built-in light theme colors and sizes.
func LineSpacing
func LineSpacing() float32LineSpacing is the default gap between multiple lines of text.
2.3func ListIcon
func ListIcon() fyne.ResourceListIcon returns a resource containing the standard list icon for the current theme
func LoginIcon
func LoginIcon() fyne.ResourceLoginIcon returns a resource containing the standard login icon for the current theme
func LogoutIcon
func LogoutIcon() fyne.ResourceLogoutIcon returns a resource containing the standard logout icon for the current theme
func MailAttachmentIcon
func MailAttachmentIcon() fyne.ResourceMailAttachmentIcon returns a resource containing the standard mail attachment icon for the current theme
func MailComposeIcon
func MailComposeIcon() fyne.ResourceMailComposeIcon returns a resource containing the standard mail compose icon for the current theme
func MailForwardIcon
func MailForwardIcon() fyne.ResourceMailForwardIcon returns a resource containing the standard mail forward icon for the current theme
func MailReplyAllIcon
func MailReplyAllIcon() fyne.ResourceMailReplyAllIcon returns a resource containing the standard mail reply all icon for the current theme
func MailReplyIcon
func MailReplyIcon() fyne.ResourceMailReplyIcon returns a resource containing the standard mail reply icon for the current theme
func MailSendIcon
func MailSendIcon() fyne.ResourceMailSendIcon returns a resource containing the standard mail send icon for the current theme
func MediaFastForwardIcon
func MediaFastForwardIcon() fyne.ResourceMediaFastForwardIcon returns a resource containing the standard media fast-forward icon for the current theme
func MediaFastRewindIcon
func MediaFastRewindIcon() fyne.ResourceMediaFastRewindIcon returns a resource containing the standard media fast-rewind icon for the current theme
func MediaMusicIcon
func MediaMusicIcon() fyne.ResourceMediaMusicIcon returns a resource containing the standard media music icon for the current theme
2.1func MediaPauseIcon
func MediaPauseIcon() fyne.ResourceMediaPauseIcon returns a resource containing the standard media pause icon for the current theme
func MediaPhotoIcon
func MediaPhotoIcon() fyne.ResourceMediaPhotoIcon returns a resource containing the standard media photo icon for the current theme
2.1func MediaPlayIcon
func MediaPlayIcon() fyne.ResourceMediaPlayIcon returns a resource containing the standard media play icon for the current theme
func MediaRecordIcon
func MediaRecordIcon() fyne.ResourceMediaRecordIcon returns a resource containing the standard media record icon for the current theme
func MediaReplayIcon
func MediaReplayIcon() fyne.ResourceMediaReplayIcon returns a resource containing the standard media replay icon for the current theme
func MediaSkipNextIcon
func MediaSkipNextIcon() fyne.ResourceMediaSkipNextIcon returns a resource containing the standard media skip next icon for the current theme
func MediaSkipPreviousIcon
func MediaSkipPreviousIcon() fyne.ResourceMediaSkipPreviousIcon returns a resource containing the standard media skip previous icon for the current theme
func MediaStopIcon
func MediaStopIcon() fyne.ResourceMediaStopIcon returns a resource containing the standard media stop icon for the current theme
func MediaVideoIcon
func MediaVideoIcon() fyne.ResourceMediaVideoIcon returns a resource containing the standard media video icon for the current theme
2.1func MenuBackgroundColor
func MenuBackgroundColor() color.ColorMenuBackgroundColor returns the theme’s background color for menus.
2.3func MenuDropDownIcon
func MenuDropDownIcon() fyne.ResourceMenuDropDownIcon returns a resource containing the standard menu drop down icon for the current theme
func MenuDropUpIcon
func MenuDropUpIcon() fyne.ResourceMenuDropUpIcon returns a resource containing the standard menu drop up icon for the current theme
func MenuExpandIcon
func MenuExpandIcon() fyne.ResourceMenuExpandIcon returns a resource containing the standard (mobile) expand “submenu icon for the current theme
func MenuIcon
func MenuIcon() fyne.ResourceMenuIcon returns a resource containing the standard (mobile) menu icon for the current theme
func MoreHorizontalIcon
func MoreHorizontalIcon() fyne.ResourceMoreHorizontalIcon returns a resource containing the standard horizontal more icon for the current theme
func MoreVerticalIcon
func MoreVerticalIcon() fyne.ResourceMoreVerticalIcon returns a resource containing the standard vertical more icon for the current theme
func MoveDownIcon
func MoveDownIcon() fyne.ResourceMoveDownIcon returns a resource containing the standard down arrow icon for the current theme
func MoveUpIcon
func MoveUpIcon() fyne.ResourceMoveUpIcon returns a resource containing the standard up arrow icon for the current theme
func NavigateBackIcon
func NavigateBackIcon() fyne.ResourceNavigateBackIcon returns a resource containing the standard backward navigation icon for the current theme
func NavigateNextIcon
func NavigateNextIcon() fyne.ResourceNavigateNextIcon returns a resource containing the standard forward navigation icon for the current theme
func OverlayBackgroundColor
func OverlayBackgroundColor() color.ColorOverlayBackgroundColor returns the theme’s background color for overlays like dialogs.
2.3func Padding
func Padding() float32Padding is the standard gap between elements and the border around interface elements.
func PlaceHolderColor
func PlaceHolderColor() color.ColorPlaceHolderColor returns the theme’s standard text color.
func PressedColor
func PressedColor() color.ColorPressedColor returns the color used to overlap tapped features.
2.0func PrimaryColor
func PrimaryColor() color.ColorPrimaryColor returns the color used to highlight primary features.
func PrimaryColorNamed
func PrimaryColorNamed(name string) color.ColorPrimaryColorNamed returns a theme specific color value for a named primary color.
1.4func PrimaryColorNames
func PrimaryColorNames() []stringPrimaryColorNames returns a list of the standard primary color options.
1.4func QuestionIcon
func QuestionIcon() fyne.ResourceQuestionIcon returns a resource containing the standard dialog question icon for the current theme
func RadioButtonCheckedIcon
func RadioButtonCheckedIcon() fyne.ResourceRadioButtonCheckedIcon returns a resource containing the standard radio button checked icon for the current theme
func RadioButtonFillIcon
func RadioButtonFillIcon() fyne.ResourceRadioButtonFillIcon returns a resource containing the filled checkbox icon for the current theme.
2.5func RadioButtonIcon
func RadioButtonIcon() fyne.ResourceRadioButtonIcon returns a resource containing the standard radio button icon for the current theme
func ScrollBarColor
func ScrollBarColor() color.ColorScrollBarColor returns the color (and translucency) for a scrollBar.
func ScrollBarSize
func ScrollBarSize() float32ScrollBarSize is the width (or height) of the bars on a ScrollContainer.
func ScrollBarSmallSize
func ScrollBarSmallSize() float32ScrollBarSmallSize is the width (or height) of the minimized bars on a ScrollContainer.
func SearchIcon
func SearchIcon() fyne.ResourceSearchIcon returns a resource containing the standard search icon for the current theme
func SearchReplaceIcon
func SearchReplaceIcon() fyne.ResourceSearchReplaceIcon returns a resource containing the standard search and replace icon for the current theme
func SelectionColor
func SelectionColor() color.ColorSelectionColor returns the color for a selected element.
2.1func SelectionRadiusSize
func SelectionRadiusSize() float32SelectionRadiusSize returns the selection highlight radius size.
2.4func SeparatorColor
func SeparatorColor() color.ColorSeparatorColor returns the color for the separator element.
2.3func SeparatorThicknessSize
func SeparatorThicknessSize() float32SeparatorThicknessSize is the standard thickness of the separator widget.
2.0func SettingsIcon
func SettingsIcon() fyne.ResourceSettingsIcon returns a resource containing the standard settings icon for the current theme
func ShadowColor
func ShadowColor() color.ColorShadowColor returns the color (and translucency) for shadows used for indicating elevation.
func Size
func Size(name fyne.ThemeSizeName) float32Size looks up the specified size for current theme.
2.5func SizeForWidget
func SizeForWidget(name fyne.ThemeSizeName, w fyne.Widget) float32SizeForWidget looks up the specified size for the requested widget using the current theme. If the widget theme has been overridden that theme will be used.
2.5func StorageIcon
func StorageIcon() fyne.ResourceStorageIcon returns a resource containing the standard storage icon for the current theme
func SuccessColor
func SuccessColor() color.ColorSuccessColor returns the theme’s success foreground color.
2.3func SymbolFont
func SymbolFont() fyne.ResourceSymbolFont returns the font resource for the symbol font style.
2.4func TextBoldFont
func TextBoldFont() fyne.ResourceTextBoldFont returns the font resource for the bold font style.
func TextBoldItalicFont
func TextBoldItalicFont() fyne.ResourceTextBoldItalicFont returns the font resource for the bold and italic font style.
func TextColor
func TextColor() color.ColorTextColor returns the theme’s standard text color - this is actually the foreground color since 1.4.
func TextFont
func TextFont() fyne.ResourceTextFont returns the font resource for the regular font style.
func TextHeadingSize
func TextHeadingSize() float32TextHeadingSize returns the text size for header text.
2.1func TextItalicFont
func TextItalicFont() fyne.ResourceTextItalicFont returns the font resource for the italic font style.
func TextMonospaceFont
func TextMonospaceFont() fyne.ResourceTextMonospaceFont returns the font resource for the monospace font face.
func TextSize
func TextSize() float32TextSize returns the standard text size.
func TextSubHeadingSize
func TextSubHeadingSize() float32TextSubHeadingSize returns the text size for sub-header text.
2.1func UploadIcon
func UploadIcon() fyne.ResourceUploadIcon returns a resource containing the standard upload icon for the current theme
func ViewFullScreenIcon
func ViewFullScreenIcon() fyne.ResourceViewFullScreenIcon returns a resource containing the standard fullscreen icon for the current theme
func ViewRefreshIcon
func ViewRefreshIcon() fyne.ResourceViewRefreshIcon returns a resource containing the standard refresh icon for the current theme
func ViewRestoreIcon
func ViewRestoreIcon() fyne.ResourceViewRestoreIcon returns a resource containing the standard exit fullscreen icon for the current theme
func VisibilityIcon
func VisibilityIcon() fyne.ResourceVisibilityIcon returns a resource containing the standard visibility icon for the current theme
func VisibilityOffIcon
func VisibilityOffIcon() fyne.ResourceVisibilityOffIcon returns a resource containing the standard visibility off icon for the current theme
func VolumeDownIcon
func VolumeDownIcon() fyne.ResourceVolumeDownIcon returns a resource containing the standard volume down icon for the current theme
func VolumeMuteIcon
func VolumeMuteIcon() fyne.ResourceVolumeMuteIcon returns a resource containing the standard volume mute icon for the current theme
func VolumeUpIcon
func VolumeUpIcon() fyne.ResourceVolumeUpIcon returns a resource containing the standard volume up icon for the current theme
func WarningColor
func WarningColor() color.ColorWarningColor returns the theme’s warning foreground color.
2.3func WarningIcon
func WarningIcon() fyne.ResourceWarningIcon returns a resource containing the standard dialog warning icon for the current theme
func WindowCloseIcon
func WindowCloseIcon() fyne.ResourceWindowCloseIcon returns a resource containing the window close icon for the current theme
2.5func WindowMaximizeIcon
func WindowMaximizeIcon() fyne.ResourceWindowMaximizeIcon returns a resource containing the window maximize icon for the current theme
2.5func WindowMinimizeIcon
func WindowMinimizeIcon() fyne.ResourceWindowMinimizeIcon returns a resource containing the window minimize icon for the current theme
2.5func ZoomFitIcon
func ZoomFitIcon() fyne.ResourceZoomFitIcon returns a resource containing the standard zoom fit icon for the current theme
func ZoomInIcon
func ZoomInIcon() fyne.ResourceZoomInIcon returns a resource containing the standard zoom in icon for the current theme
func ZoomOutIcon
func ZoomOutIcon() fyne.ResourceZoomOutIcon returns a resource containing the standard zoom out icon for the current theme