mirror of
https://github.com/taigrr/simplecolorpalettes.git
synced 2026-04-02 04:59:08 -07:00
refactor wombat colorscheme
This commit is contained in:
36
vim/wombat/wombat.go
Normal file
36
vim/wombat/wombat.go
Normal file
@@ -0,0 +1,36 @@
|
||||
package wombat
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"sync"
|
||||
|
||||
"github.com/taigrr/go-colorpalettes/simplecolor"
|
||||
)
|
||||
|
||||
var (
|
||||
once sync.Once
|
||||
colors = simplecolor.SimplePalette{
|
||||
0x141413,
|
||||
0x242424,
|
||||
0x32322f,
|
||||
0x40403c,
|
||||
0x767676,
|
||||
0x7cb0e6,
|
||||
0x86cd74,
|
||||
0x94e42c,
|
||||
0xb5d3f3,
|
||||
0xcae682,
|
||||
0xdadada,
|
||||
0xe55345,
|
||||
0xe5786d,
|
||||
0xfade3e,
|
||||
0xfde76e,
|
||||
}
|
||||
)
|
||||
|
||||
func GetPalette() (sp simplecolor.SimplePalette) {
|
||||
once.Do(func() {
|
||||
sort.Sort(colors)
|
||||
})
|
||||
return colors
|
||||
}
|
||||
Reference in New Issue
Block a user