import (
"fmt"
- "github.com/gdamore/tcell"
+ "github.com/zyedidia/tcell"
"io/ioutil"
"regexp"
"strconv"
// The current colorscheme
var colorscheme Colorscheme
-var preInstalledColors = [3]string{"default", "solarized", "solarized-tc"}
+var preInstalledColors = []string{"default", "solarized", "solarized-tc", "atom-dark-tc", "monokai"}
// InitColorscheme picks and initializes the colorscheme when micro starts
func InitColorscheme() {
// LoadDefaultColorscheme loads the default colorscheme from $(configDir)/colorschemes
func LoadDefaultColorscheme() {
- LoadColorscheme(settings.Colorscheme, configDir+"/colorschemes")
+ LoadColorscheme(settings["colorscheme"].(string), configDir+"/colorschemes")
}
// LoadColorscheme loads the given colorscheme from a directory
fg = strings.TrimSpace(fg)
bg = strings.TrimSpace(bg)
- style := tcell.StyleDefault.Foreground(StringToColor(fg)).Background(StringToColor(bg))
+ style := defStyle.Foreground(StringToColor(fg)).Background(StringToColor(bg))
if strings.Contains(str, "bold") {
style = style.Bold(true)
}