Skip to content

Commit 4b0bb63

Browse files
committed
Add public methods for UnderlineStyle and UnderlineColor
resolve gdamore#787
1 parent 7815866 commit 4b0bb63

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

style.go

+10
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,16 @@ func (s Style) Underline(params ...interface{}) Style {
164164
return s2
165165
}
166166

167+
// UnderlineStyle returns the underline style for the style.
168+
func (s Style) UnderlineStyle() UnderlineStyle {
169+
return s.ulStyle
170+
}
171+
172+
// UnderlineColor returns the underline color for the style.
173+
func (s Style) UnderlineColor() Color {
174+
return s.ulColor
175+
}
176+
167177
// Attributes returns a new style based on s, with its attributes set as
168178
// specified.
169179
func (s Style) Attributes(attrs AttrMask) Style {

0 commit comments

Comments
 (0)