From 1a5e90c8a22c291e8293caacf9fd31d6d19b3abf Mon Sep 17 00:00:00 2001 From: Zachary Yedidia Date: Sat, 27 Aug 2016 16:09:30 -0400 Subject: [PATCH] Add zenburn colorscheme Closes #214 --- cmd/micro/colorscheme.go | 2 +- cmd/micro/runtime.go | 23 +++++++++++++++++++++++ runtime/colorschemes/zenburn.micro | 19 +++++++++++++++++++ 3 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 runtime/colorschemes/zenburn.micro diff --git a/cmd/micro/colorscheme.go b/cmd/micro/colorscheme.go index eac9062a..544a2536 100644 --- a/cmd/micro/colorscheme.go +++ b/cmd/micro/colorscheme.go @@ -15,7 +15,7 @@ type Colorscheme map[string]tcell.Style // The current colorscheme var colorscheme Colorscheme -var preInstalledColors = []string{"default", "solarized", "solarized-tc", "atom-dark-tc", "monokai", "gruvbox"} +var preInstalledColors = []string{"default", "solarized", "solarized-tc", "atom-dark-tc", "monokai", "gruvbox", "zenburn"} // InitColorscheme picks and initializes the colorscheme when micro starts func InitColorscheme() { diff --git a/cmd/micro/runtime.go b/cmd/micro/runtime.go index 36b56fb7..5b16f807 100644 --- a/cmd/micro/runtime.go +++ b/cmd/micro/runtime.go @@ -7,6 +7,7 @@ // runtime/colorschemes/monokai.micro // runtime/colorschemes/solarized-tc.micro // runtime/colorschemes/solarized.micro +// runtime/colorschemes/zenburn.micro // runtime/help/colors.md // runtime/help/commands.md // runtime/help/help.md @@ -313,6 +314,26 @@ func runtimeColorschemesSolarizedMicro() (*asset, error) { return a, nil } +var _runtimeColorschemesZenburnMicro = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\x7c\x90\xc1\x6e\xc3\x20\x10\x44\xef\xf9\x0a\xc4\x39\xae\x0a\x6e\x6c\xff\x0e\x81\x4d\x8a\x8a\x17\x6b\x59\x0e\xfd\xfb\x6a\xdd\xaa\x6a\x0a\xce\x0d\xe9\xcd\x30\xb3\xe3\x73\xca\x34\xa4\x88\x1f\x2a\xc0\xcd\xd5\xc4\x4a\x9b\x65\x39\xdb\x71\xd6\xa7\x3f\xd0\xe7\x75\x05\x14\xf8\xda\x83\x58\xd8\x21\xbf\x14\xa6\x88\x77\xa5\xcd\xfc\x76\x2c\xc2\xba\x5e\x81\x94\x36\x66\x3a\x14\x49\x09\xd3\xd0\x18\x00\x39\xde\xa2\xb8\xad\x1d\x1b\x5e\xd8\x31\xfc\xd4\x5c\xe6\x06\x6f\x04\x1b\x65\xdf\xf7\xf2\xe7\x06\x7d\x5b\xd9\xc0\x47\x97\xfa\x95\x2a\x06\xa0\x14\x11\x42\x7f\x37\x20\xca\xfb\xad\x97\xb3\x1d\xa7\xc7\xc4\x1c\xb2\xd2\xd7\x9c\x82\xb2\x97\x76\x2f\x39\xa6\x16\xf9\x5a\x7e\x9e\x1a\x7b\x44\x59\x63\xf0\xef\x4e\xd6\x18\xdb\x68\xb1\x0e\xbf\x63\xef\xdd\x96\x07\xc1\xbd\x32\x03\x0d\x4f\x2a\xfa\x4a\xe5\xfb\x0d\x7b\xc6\x7f\x48\xd2\xa0\x93\x33\xeb\xd3\x57\x00\x00\x00\xff\xff\x3f\xb3\x30\x84\x59\x02\x00\x00") + +func runtimeColorschemesZenburnMicroBytes() ([]byte, error) { + return bindataRead( + _runtimeColorschemesZenburnMicro, + "runtime/colorschemes/zenburn.micro", + ) +} + +func runtimeColorschemesZenburnMicro() (*asset, error) { + bytes, err := runtimeColorschemesZenburnMicroBytes() + if err != nil { + return nil, err + } + + info := bindataFileInfo{name: "runtime/colorschemes/zenburn.micro", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} + a := &asset{bytes: bytes, info: info} + return a, nil +} + var _runtimeHelpColorsMd = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\x8c\x58\xdf\x8f\xe3\xb8\x0d\x7e\xd7\x5f\x41\xcc\x16\x98\x99\x20\x71\xb0\x05\x7a\x28\x16\xb8\x87\xde\xe2\xda\x5b\xa0\x77\x0b\x6c\xa7\x0f\x87\x6e\xd1\xd0\x36\x13\xab\x23\x4b\xae\x44\x4f\x92\x7b\xe8\xdf\x5e\x90\x92\x7f\x64\xf6\xba\xed\xd3\x20\xb6\x4c\x7e\x24\x3f\x7e\xa4\xe6\x0d\xbc\x0f\x2e\xc4\x64\xcc\x53\x67\x13\x74\xe4\x06\x18\xf0\x44\x80\xb6\x4f\xc0\x01\x9a\xf0\x42\x11\xf8\x1c\x00\xd3\x40\x0d\x27\x08\x47\xe8\x6d\x13\xc3\x7d\x82\x74\xf5\x8c\x17\xe8\xec\xa9\x73\xf6\xd4\xb1\xf5\x27\x20\x7f\xb2\x9e\xde\x19\xb3\x83\x1f\xc2\x59\x4d\x44\x42\x26\x68\xd4\x51\xd3\x51\x4f\x09\xd0\xb7\x30\x26\x02\xee\xa8\xff\xe2\x64\x31\x7b\xb4\x8e\x14\x03\xb6\xad\xfc\xe1\x8e\xc0\xd9\xc4\x82\xc0\xa1\x3f\x8d\x78\xa2\x94\xb1\x40\x83\x7e\x81\x61\xcc\x9b\x37\x53\x60\xd9\x9f\x31\x3f\xe6\x63\x41\x9c\x9f\x2d\x77\x80\xe0\xc7\xbe\xa6\x28\xd6\x6e\xa0\xd5\x57\x68\xe9\x88\xa3\xe3\x0a\x7e\xa0\x48\x60\xd3\xec\xfa\x9d\x31\x9b\xe9\xed\x3b\x60\x49\x59\x79\x9b\x6c\x3f\x38\x4a\xbc\xb6\x55\xc1\x07\x96\x28\x13\xbc\xfd\xa6\x3c\x87\x73\x67\x9b\x0e\x30\x92\x01\x48\xc4\xe2\xed\x1a\xc6\x08\x4c\xb1\xb7\x1e\x9d\x38\x48\xc1\x61\xb4\xbf\x50\xfb\xca\xc5\xf4\xf8\xd6\x87\x01\xf8\x39\x8c\x90\xba\x30\xba\x16\x3a\x7c\xa1\x5f\x3b\x0d\x03\x3a\x62\x26\xb0\xfe\xd6\xa1\x64\x56\x2a\x61\xb9\xba\xf1\xbd\xe3\xe6\xff\x70\x0f\xc7\x10\x81\xe3\x58\xca\xbb\x85\x7f\x8e\x89\x05\x52\x8f\xcf\x04\x69\x8c\xf4\xca\x5b\x1a\x87\x21\x44\x4e\xab\x8f\xa0\xa6\x63\x88\x04\x63\x12\xfe\x58\x56\x72\x70\x87\xac\x6e\x0d\xc0\x8f\x1f\xde\x7f\xfa\xf8\x8f\xa7\x4f\x7f\xfd\xfe\xfd\xc7\x3f\x7f\xfc\x04\xe4\x5f\x6c\x0c\xbe\x27\xcf\xf0\x82\xd1\x62\xed\xb4\x4a\x92\x4f\x0e\xf0\x76\x32\x98\x18\xa3\x72\x52\x39\xa2\xe1\xf5\xc1\x87\x67\xb4\xb7\x91\x95\x87\x37\x71\x09\x06\x9b\x66\xa6\x97\x9a\xaf\x8f\x18\x80\x07\x4c\x70\x26\xe7\x00\x13\xa4\xb1\x76\xb6\x27\x60\xba\xf0\x7d\x7a\xac\x40\x8a\x1f\xe9\x5f\xa3\x8d\x74\x13\x2d\x07\x03\xe0\x42\x78\x86\x81\xe2\x91\x1a\xde\x42\x3d\xe6\x58\x7f\xfb\xbb\xc2\x13\xc0\x61\x88\xe1\x62\x7b\x64\x1b\xbc\x9e\x4e\xf0\x42\xf1\x0a\xa7\x10\x5a\x28\x6e\x35\x22\xe4\xd0\xef\x5a\x8c\xcf\x4b\xc1\xd6\x71\xd8\x04\x35\x26\x6a\x21\x1c\x8f\x42\xf5\x3f\x70\xe8\xef\x13\xdc\xc9\x17\x77\x37\x44\x32\x5f\x41\x9c\xf1\x8a\xef\xca\x98\xa7\x00\xe4\x35\xe7\xc1\x93\xd8\xe4\x8e\xd2\xab\xfe\x56\x1a\xc4\xd1\x6b\x58\x4d\xe8\x7b\xc9\xe7\x41\x0a\xb4\x06\x37\x53\xea\x50\x99\x87\x10\x73\x73\x90\x08\x8e\x58\xbe\x86\x11\x9a\x2e\x84\x44\x8f\x95\x31\xbb\xdd\xae\x74\xf1\x7d\x7a\xa5\x25\x91\x00\x5d\x0a\x40\x17\x8e\xd4\x93\xbb\x96\x6e\x5c\x24\xa5\x82\xa7\x8e\xe6\x22\x06\x4f\x49\x15\xa3\x16\xfe\x8e\xbe\x35\x7f\xeb\x28\xd2\xdf\x1f\x3a\xe6\x21\xbd\xdb\xef\x4f\x96\xbb\xb1\xae\x9a\xd0\xef\x7f\xb9\x52\x6b\x5b\x8b\x7b\x65\xc2\x9e\x23\xd1\xbe\xc7\xc4\x14\xf7\x71\xf4\x6c\x7b\xda\xaf\xc1\x08\xd2\xa7\x8e\xae\x0a\x2a\x78\x77\x05\xac\xc3\xc8\xf0\xf6\xf7\xe0\xac\xb8\xb5\x1e\x38\x30\x4a\xed\xbe\xc3\x64\x1b\x74\xee\xba\x92\xbe\x9c\xae\x25\x43\x92\x03\x4f\xa4\xfa\xe7\xac\x7f\x5e\x44\x0e\x4e\x31\x8c\xc3\x24\x66\x0d\x8f\xe8\xca\x97\x55\xd6\x72\x9b\xa0\x95\x34\xe6\xb6\x12\xc3\x07\x7d\xbf\x13\x3b\x87\xa9\x28\x95\x31\x7f\x0c\x11\xe8\x82\x92\xb1\xad\xf8\x59\x5c\xa0\x73\x7a\x8e\x3c\x2b\xf2\x53\x24\xf2\x5b\x05\x75\x56\xb5\x29\x12\x3e\x19\x7b\x67\xcc\xe1\x70\x30\x8b\x9b\xe9\x6b\xb8\xd3\x4f\xef\xf4\xb5\xf9\x0e\x9b\x67\x41\xef\x27\x29\xd1\x62\x68\x09\x6b\x02\x19\x33\xf6\x68\xa9\x9d\x74\x5a\x8d\xff\x2f\xd3\xdb\xda\x8d\x54\xec\x6b\xf8\x67\xeb\x1c\x9c\xec\xcb\x02\x50\xa3\x40\x90\x83\x50\xcf\x10\x2a\x63\x3e\x1c\x57\x21\x39\xfb\x4c\xe0\x83\x08\x1b\x15\x90\x4a\x44\xf4\x99\xd4\x12\x72\xc1\x94\x01\xfa\xc0\x9d\x0a\x97\x87\x63\x0c\x9e\xbf\x82\x74\x0d\xf2\xe7\x62\x54\xc3\x1e\x46\x86\x3a\xb8\x76\x0b\x21\xc2\xe8\x5b\x8a\xc2\x96\xd9\x64\x69\xb2\x9c\xad\xaf\xd8\x17\x13\x10\xa9\x2d\x2e\xb4\x65\x9e\x84\xda\x4a\x47\xee\x22\x11\xb4\xf6\x78\xa4\x28\xc7\xcf\x78\xd5\xf1\x9a\x13\x7e\x5d\x3c\x54\xc6\xbc\xcf\x8d\x5f\x54\x3b\xc1\x98\x46\x65\xaa\x8e\x97\x65\x9a\xa9\x4a\x8b\xed\x21\x52\x99\x66\x62\x65\x4c\x14\xa5\xe5\x44\x40\x09\x7d\x3e\x67\x4a\x1a\x7d\x60\x68\x69\x20\xdf\x42\x10\x7d\x08\xb3\x76\x00\x3a\xc5\x54\xd3\xc4\xd8\x84\x32\xe1\xa6\x54\x65\xb6\xad\xce\x4b\xfe\x8d\x9c\xf3\x28\x42\x70\xa8\x1d\x36\xcf\x5b\xc9\xc0\x76\xe6\x2a\x39\x17\xce\x5b\xad\xfa\x16\x7a\x3c\x91\x67\xdc\x42\x73\x45\xbf\x15\xbd\x61\x3a\x94\x79\x43\x50\x47\x65\xbd\x8e\x14\xcf\xc9\x84\x23\x10\x36\x9d\x8a\xd1\x43\x7e\x59\x3c\xe4\x1f\x91\xda\xaa\xaa\x4a\xcb\xfb\x99\x26\x53\x53\x2c\xd9\x9b\x75\x5d\xb7\x8b\xb9\x21\x6d\x2c\x3b\x48\x82\xb7\x3b\x39\xf3\xb0\xfc\x7c\xfb\x8d\x32\xd8\x44\x3a\x52\x9c\xb6\x1f\x09\x73\xea\x99\xc7\x4c\xdc\x29\xdd\xf7\xe9\xab\x33\x76\x2b\x07\x17\x88\x4a\xba\xa9\xee\x05\x19\x5d\xb0\x61\x57\xe0\x99\x0c\xaf\xa3\x0b\x34\xa1\xa5\x54\x41\xf1\x35\x3b\xb1\x49\x98\x7f\x33\xc6\x47\x2e\xdb\x98\xcc\x55\xa1\x62\x59\x2d\x70\x7d\x6a\x3d\x41\x2d\xe7\x36\x45\x66\xea\x07\x1d\xde\x3d\x0e\x2b\x11\x9c\x02\xc7\x17\xb4\x4e\x47\xce\x92\xca\xca\x98\x3f\x91\xa7\xa8\xbc\xbc\x19\x08\x79\xc7\x2a\x93\xec\x66\x90\xcd\x15\x59\x8f\x34\x25\x70\x8f\xf1\x79\x91\x9c\xc3\x8e\x9b\x03\xa4\xf1\x78\xb4\x97\x69\xf6\x4c\xbb\x20\xce\x4b\xe8\x6b\xb1\x2e\x8a\xac\x4d\xb1\x22\xc3\x7a\x69\x84\x87\x8c\xa4\x7c\xbd\xc8\x90\x92\x70\xa5\x39\x47\x15\x82\x59\x8a\x65\x02\xd0\x85\x1f\xcd\x66\xea\x76\xb3\x01\xdb\x92\x67\x91\xca\xa8\x8f\x7d\x62\xd4\xe7\x89\x91\xa9\x9c\x19\x22\x0d\x31\x34\x66\x03\x7c\x1d\x48\x5e\x4a\xd5\xd1\x99\xcd\xa2\x33\xad\xd9\x00\xc5\x18\xc4\x0c\x87\x36\x14\x13\x63\x52\x11\xba\x45\xbc\xbc\x10\x2c\xd6\x0b\x84\x5d\xd3\x61\x7c\x75\x4e\x1e\x61\xc3\x54\x86\xba\x9c\xb4\x0d\xb2\x2c\x16\x58\x27\xb0\xf9\x54\x18\x74\xbf\xb1\xa9\x6c\x14\xad\x18\x15\xe3\xbb\xdc\x09\x66\x03\xa7\x91\x99\xe2\x6e\xc2\x57\x7e\x9e\x31\x7a\xa1\xe9\x06\x9a\x31\xa6\x2c\x84\x54\x64\x6b\xa2\x41\x99\xf0\x83\xc3\x86\x5a\x1d\xbc\x32\x03\xff\xbd\xaf\x9a\xe0\x8f\xf6\x54\x26\xfa\x9a\x39\x07\x68\x6d\xa4\x86\x43\xd4\x99\x5c\x6b\x6b\xc9\x84\x90\xfb\xc4\x5f\x56\xb7\x12\xed\xf8\xdb\x7b\xca\xd4\x4d\x5d\xbe\xca\x2c\x43\xb4\xa1\xc8\x68\xfd\x72\x65\xc9\x7a\x01\x47\x1b\x13\x2f\xb5\x12\x80\xb8\x36\x99\x5b\x63\x88\xa1\xc6\xda\x65\x5d\x2d\x6f\xe7\x6f\x8a\xc6\x32\x39\x57\x56\x55\x73\x16\xf2\x4d\xae\xd6\x1f\xa9\x49\x9b\x94\x58\xc2\xb5\x82\xb3\x25\xa6\x86\x01\xcb\x7b\x9f\xd9\x3b\x19\xa8\x8c\xf9\x3e\x25\x61\x99\x74\xd9\x16\x2c\xdf\xe7\xdd\x2e\xcf\xa0\x62\xfa\xee\x27\xec\x69\x7d\x2b\xbb\x83\xbb\xcf\x15\x5d\x98\x7c\xb2\xc1\xff\xa6\x8c\x23\xd9\x33\x04\xd0\xfc\x62\x5b\xe4\x42\x03\xd5\xe1\xda\x84\x7e\xc8\xa3\x0a\x65\x15\x3d\xd1\x65\x52\x00\x81\x27\xf2\x97\x17\xf3\xa3\x5c\x13\x7a\xe4\xa6\xa3\x94\x95\xcd\xb2\x51\x33\x93\xf8\x16\x68\x71\x94\xda\xb4\x74\x14\x9a\x4f\x1c\x88\xd4\xa3\x30\x77\x26\xab\x18\xaf\xa6\x51\x29\x2d\x2e\xf2\x88\x30\x84\x94\x6c\x6d\x9d\xe5\xeb\x22\x65\x1d\xa1\x7c\xb9\xd4\xad\xf0\x5b\x84\xa1\x20\x16\xf0\xab\xc8\x4a\x50\x46\xb5\x85\xe7\xca\x6b\x73\xad\x01\xc0\xb4\xb6\xa1\xeb\x83\x28\x8c\x57\x35\xa6\x2c\x06\xa9\xa3\x1a\xfd\x29\x41\xb9\x17\x71\x18\xe4\xeb\xd4\xc9\xfd\x23\x35\xd1\x0e\x9c\x4c\xc6\xd2\x06\x7f\xcf\x79\x54\xa3\xbf\x2e\xf9\x86\x87\x44\x04\xa9\xab\x32\xb8\xcc\x84\x69\xf5\x9b\x77\xec\x27\xcd\x50\x56\x38\x7c\xcd\x1e\xbd\x83\x94\xed\xba\x5c\x91\x68\x21\xc8\x4a\x1b\x35\x15\x4b\x5b\xc8\xc4\x7b\xdd\x19\x66\x59\x45\xe8\x22\x0b\x84\x60\x94\xee\xf8\xc0\x62\x37\x52\x56\xba\x96\xca\x6d\xf0\x2c\x75\xd6\x3d\x59\xac\xdd\x42\x13\xb9\x5d\x96\xd1\x2f\x24\x59\x03\xc7\x3a\xbc\xd0\xa3\xdc\xbf\x96\xe6\xfc\x75\x08\xba\x71\xf4\x78\xcd\x44\xe8\x30\xb6\x3a\x05\x8b\xe5\xe9\xbe\x26\x55\xc6\xab\x4e\xc1\x65\x96\xe4\xcd\x46\xa4\x29\x78\xd0\x66\x9c\x27\xe6\x1a\xd7\x34\xb6\xa1\x43\xd9\xac\x13\xa3\x73\xaa\x34\xf3\x94\x99\x0b\xf3\x4a\x4d\xa6\x45\xf6\x61\x05\x78\xb9\xe9\x2a\xc7\x0e\xfb\xfd\xe1\x71\xbd\x26\x2e\x1b\xe2\x7e\x5f\x6d\xbe\xd8\x92\x17\xeb\xb9\x3b\x84\xc4\x07\x39\x79\x98\x3a\xa6\x8c\xcf\xe9\x4e\x5e\x16\x8e\x75\x40\x12\x87\x2c\xa3\x34\xff\xab\x66\x9a\x53\x5a\x82\xca\x98\x9f\x02\xd3\x64\x42\xcb\x2b\x6e\x94\xe3\xab\x46\x16\x39\xd7\x72\x48\x77\x2c\xff\x7f\x59\x65\x43\x58\xdb\x8f\x8e\xad\xf6\xcf\x92\x8e\xc3\x7e\x1e\x8d\xb0\xf9\x6f\xf1\x6b\x9e\xbe\xbd\xdb\x7f\xde\xdc\x01\xf9\xf6\xdb\xbb\xcf\x9b\x7d\x4e\xc7\x7f\x02\x00\x00\xff\xff\x14\x96\x9f\x1c\x09\x13\x00\x00") func runtimeHelpColorsMdBytes() ([]byte, error) { @@ -2352,6 +2373,7 @@ var _bindata = map[string]func() (*asset, error){ "runtime/colorschemes/monokai.micro": runtimeColorschemesMonokaiMicro, "runtime/colorschemes/solarized-tc.micro": runtimeColorschemesSolarizedTcMicro, "runtime/colorschemes/solarized.micro": runtimeColorschemesSolarizedMicro, + "runtime/colorschemes/zenburn.micro": runtimeColorschemesZenburnMicro, "runtime/help/colors.md": runtimeHelpColorsMd, "runtime/help/commands.md": runtimeHelpCommandsMd, "runtime/help/help.md": runtimeHelpHelpMd, @@ -2502,6 +2524,7 @@ var _bintree = &bintree{nil, map[string]*bintree{ "monokai.micro": &bintree{runtimeColorschemesMonokaiMicro, map[string]*bintree{}}, "solarized-tc.micro": &bintree{runtimeColorschemesSolarizedTcMicro, map[string]*bintree{}}, "solarized.micro": &bintree{runtimeColorschemesSolarizedMicro, map[string]*bintree{}}, + "zenburn.micro": &bintree{runtimeColorschemesZenburnMicro, map[string]*bintree{}}, }}, "help": &bintree{nil, map[string]*bintree{ "colors.md": &bintree{runtimeHelpColorsMd, map[string]*bintree{}}, diff --git a/runtime/colorschemes/zenburn.micro b/runtime/colorschemes/zenburn.micro new file mode 100644 index 00000000..ba523920 --- /dev/null +++ b/runtime/colorschemes/zenburn.micro @@ -0,0 +1,19 @@ +color-link default "188,237" +color-link comment "108,237" +color-link constant.string "174,237" +color-link constant.number "116,237" +color-link constant "181,237" +color-link identifier "223,237" +color-link statement "187,237" +color-link preproc "223,237" +color-link type "187,237" +color-link special "181,237" +color-link underlined "188,237" +color-link error "115,236" +color-link todo "bold 254,237" +color-link statusline "186,236" +color-link indent-char "238,237" +color-link line-number "188,238" +color-link gutter-error "115,236" +color-link cursor-line "238" +color-link current-line-number "188,237"