refactor wombat colorscheme

This commit is contained in:
2022-09-28 19:26:02 -07:00
parent 2db2a1889b
commit 95a3de23cd
2 changed files with 36 additions and 24 deletions

36
vim/wombat/wombat.go Normal file
View 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
}

View File

@@ -1,24 +0,0 @@
package wombat
var (
Colors = []int{0x141413, 0x242424, 0x32322F, 0x40403C, 0x767676, 0x7CB0E6,
0x86CD74, 0x94E42C, 0xB5D3F3, 0xCAE682, 0xDADADA, 0xE55345, 0xE5786D,
0xFADE3E, 0xFDE76E,
}
Black = 0x141413
Grey1 = 0x242424
Grey2 = 0x32322F
Grey3 = 0x40403C
Grey4 = 0x767676
Blue = 0x7CB0E6
LightGreen = 0x86CD74
Green = 0x94E42C
BlueGrey = 0xB5D3F3
Lime = 0xCAE682
Pink = 0xDADADA
Red = 0xE55345
Salmon = 0xE5786D
Yellow = 0xFADE3E
Amber = 0xFDE76E
)