Skip to content

Commit

Permalink
fixup! Move bold and underline to text style Change TextGridStyle to …
Browse files Browse the repository at this point in the history
…use TextStyle
  • Loading branch information
mgazza committed Jun 12, 2024
1 parent 9ad858f commit 4266b90
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion text.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ type TextStyle struct {
Symbol bool // Use the system symbol font.
// Since: 2.1
TabWidth int // Width of tabs in spaces
// Since 2.5
// Since: 2.5
// Currently only supported by the TextGrid widget.
Underline bool // Should text be underlined.
}

Expand Down
1 change: 1 addition & 0 deletions widget/textgrid.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ type TextGridStyle interface {

// CustomTextGridStyle is a utility type for those not wanting to define their own style types.
type CustomTextGridStyle struct {
// Since: 2.5
TextStyle fyne.TextStyle
FGColor, BGColor color.Color
}
Expand Down

0 comments on commit 4266b90

Please sign in to comment.