amend style broken dependency
This commit is contained in:
parent
79ed312ca2
commit
5ce1b15734
|
@ -5,7 +5,6 @@ import (
|
|||
"strconv"
|
||||
"strings"
|
||||
|
||||
"gitea.meta-tech.academy/go/core/util"
|
||||
"github.com/gookit/color"
|
||||
)
|
||||
|
||||
|
@ -57,7 +56,7 @@ func NewStyleByDef(def string) *Style {
|
|||
if len(d) > KEY_STYLE_OPTION {
|
||||
o = strings.Split(d[KEY_STYLE_OPTION], ",")
|
||||
}
|
||||
util.PrependToSliceStr(&c, "#")
|
||||
prependToSliceStr(&c, "#")
|
||||
var s *color.RGBStyle
|
||||
switch len(c) {
|
||||
case 1:
|
||||
|
@ -67,7 +66,7 @@ func NewStyleByDef(def string) *Style {
|
|||
}
|
||||
for _, elm := range o {
|
||||
|
||||
s.AddOpts(color.Color(util.Str2int(elm, 10, 0)))
|
||||
s.AddOpts(color.Color(str2int(elm, 10, 0)))
|
||||
}
|
||||
// s.Printf(" %-20s\n", d[KEY_STYLE_NAME])
|
||||
return &Style{s, d[KEY_STYLE_NAME]}
|
||||
|
|
Loading…
Reference in New Issue
Block a user