-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add text decoration and underline offset
- Loading branch information
1 parent
c389468
commit 9318c8d
Showing
5 changed files
with
193 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package props | ||
|
||
type TextDecorationLine string | ||
|
||
const ( | ||
TextDecorationLineNone TextDecorationLine = "none" | ||
TextDecorationLineUnderline TextDecorationLine = "underline" | ||
TextDecorationLineOverline TextDecorationLine = "overline" | ||
TextDecorationLineLineThrough TextDecorationLine = "line-through" | ||
) | ||
|
||
func (t TextDecorationLine) String() string { | ||
return string(t) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package props | ||
|
||
type TextDecorationStyle string | ||
|
||
const ( | ||
TextDecorationStyleSolid TextDecorationStyle = "solid" | ||
TextDecorationStyleDouble TextDecorationStyle = "double" | ||
TextDecorationStyleDotted TextDecorationStyle = "dotted" | ||
TextDecorationStyleDashed TextDecorationStyle = "dashed" | ||
TextDecorationStyleWavy TextDecorationStyle = "wavy" | ||
) | ||
|
||
func (t TextDecorationStyle) String() string { | ||
return string(t) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters