Upgrade to v2.5
Fyne API v2.5
app
canvas
container
data/binding
data/validation
dialog
driver
driver/desktop
driver/mobile
driver/software
lang
layout
storage
storage/repository
test
theme
widget
package widget
Accordion
AccordionItem
Activity
BaseWidget
Button
ButtonAlign
ButtonIconPlacement
ButtonImportance
ButtonStyle
Card
Check
CheckGroup
CustomTextGridStyle
DisableableWidget
Entry
FileIcon
Form
FormItem
GridWrap
GridWrapItemID
Hyperlink
HyperlinkSegment
Icon
ImageSegment
Importance
Label
List
ListItemID
ListSegment
Menu
Orientation
ParagraphSegment
PopUp
PopUpMenu
ProgressBar
ProgressBarInfinite
RadioGroup
RichText
RichTextBlock
RichTextSegment
RichTextStyle
Select
SelectEntry
Separator
SeparatorSegment
Slider
Table
TableCellID
TextGrid
TextGridCell
TextGridRow
TextGridStyle
TextSegment
Toolbar
ToolbarAction
ToolbarItem
ToolbarSeparator
ToolbarSpacer
Tree
TreeNodeID
Fyne API "widget.CustomTextGridStyle"
widget.CustomTextGridStyle
import "fyne.io/fyne/v2/widget"
Usage
type CustomTextGridStyle
type CustomTextGridStyle struct {
// Since: 2.5
TextStyle fyne.TextStyle
FGColor, BGColor color.Color
}
CustomTextGridStyle is a utility type for those not wanting to define their own style types.
func (*CustomTextGridStyle) BackgroundColor
func (c *CustomTextGridStyle) BackgroundColor() color.Color
BackgroundColor is the color a cell should use for the background.
func (*CustomTextGridStyle) Style
func (c *CustomTextGridStyle) Style() fyne.TextStyle
Style is the text style a cell should use.
func (*CustomTextGridStyle) TextColor
func (c *CustomTextGridStyle) TextColor() color.Color
TextColor is the color a cell should use for the text.