mirror of
https://github.com/fumiama/go-docx.git
synced 2026-06-12 11:40:28 +08:00
feat: add shade effect
This commit is contained in:
10
apirun.go
10
apirun.go
@@ -25,7 +25,6 @@ func (r *Run) Color(color string) *Run {
|
||||
r.RunProperties.Color = &Color{
|
||||
Val: color,
|
||||
}
|
||||
|
||||
return r
|
||||
}
|
||||
|
||||
@@ -34,7 +33,16 @@ func (r *Run) Size(size string) *Run {
|
||||
r.RunProperties.Size = &Size{
|
||||
Val: size,
|
||||
}
|
||||
return r
|
||||
}
|
||||
|
||||
// Shade allows to set run shade
|
||||
func (r *Run) Shade(val, color, fill string) *Run {
|
||||
r.RunProperties.Shade = &Shade{
|
||||
Val: val,
|
||||
Color: color,
|
||||
Fill: fill,
|
||||
}
|
||||
return r
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user