()
| 49 | } |
| 50 | |
| 51 | func (lg *Legend) Defaults() { |
| 52 | lg.TextStyle.Defaults() |
| 53 | lg.TextStyle.Padding.Dp(2) |
| 54 | lg.TextStyle.Font.Size.Dp(20) |
| 55 | lg.Position.Defaults() |
| 56 | lg.ThumbnailWidth.Pt(20) |
| 57 | lg.Fill = gradient.ApplyOpacity(colors.Scheme.Surface, 0.75) |
| 58 | } |
| 59 | |
| 60 | // Add adds an entry to the legend with the given name. |
| 61 | // The entry's thumbnail is drawn as the composite of all of the |
nothing calls this directly
no test coverage detected