fyne-io / fyne

Cross platform GUI toolkit in Go inspired by Material Design
https://fyne.io/
Other
24.59k stars 1.37k forks source link

Add Underline support to Label/RichText #4321

Open dweymouth opened 11 months ago

dweymouth commented 11 months ago

Related: #4297

Checklist

Is your feature request related to a problem?

It would be nice to support an underlining style for text.

Is it possible to construct a solution with the existing API?

No. Other than drawing a canvas.Rectangle along the text baseline (which is how it could be implemented internally)

Describe the solution you'd like to see.

Underline bool added as a property to fyne.TextStyle

GaetanBaert commented 11 months ago

Underline seems implemented in #4244 for TextGrid, but not for Text though.