micro/internal/config
Dmitry Maluka 9ad4437a98
Fix some issues with default colors in colorschemes (#2225)
* Fix default colors for unconfigured syntax groups

When GetColor is called for a syntax group not specified in the
colorscheme, it should fallback not to the terminal's default colors
(tcell.DefaultColor) but to the colorscheme's defaults (DefStyle)
which may be different from tcell.DefaultColor.

For example, if we are using micro's default colorscheme in a terminal
which uses a black-on-white theme, then dots and commas in Go files
("symbol" syntax group in go.yaml) are displayed black on a dark
background, i.e. barely visible.

* Avoid using terminal's default colors directly

If a syntax group color is set to "default" (which we have for some
syntax groups in some colorschemes), it defaults to the terminal's
default colors (tcell.DefaultColor), which is fine for 16-color
colorschemes but not quite fine for truecolor and 256-color
colorschemes which should not depend on the terminal colors.
It should default to the colorscheme's default (DefStyle) instead.

For example, if we are using micro's default colorscheme in a terminal
which uses a black-on-white theme, then "bool" type in C files
("type.extended" syntax group in c.yaml) is displayed black on a dark
background, i.e. barely visible.
2021-09-28 13:30:29 -07:00
..
autosave.go Fix autosave not running by default 2020-10-08 23:33:34 -04:00
colorscheme.go Fix some issues with default colors in colorschemes (#2225) 2021-09-28 13:30:29 -07:00
colorscheme_test.go Update to tcell v2 2020-09-05 14:52:35 -04:00
config.go Use filepath.Join more 2020-02-11 13:09:17 -05:00
globals.go Fix internal string binding representation 2020-11-05 15:52:25 -05:00
plugin.go Fix v2 import path for go mod 2020-05-04 10:16:15 -04:00
plugin_installer.go Fix quality issues (#1856) 2020-09-16 00:08:01 -04:00
plugin_installer_test.go Add plugin manager 2020-02-01 23:54:38 -05:00
plugin_manager.go Add plugin manager 2020-02-01 23:54:38 -05:00
rtfiles.go Build : using go:generate and go:embed (#2195) 2021-08-24 22:02:29 -04:00
rtfiles_test.go Change project layout and use go.mod 2019-12-25 17:05:10 -05:00
settings.go Implement word wrapping 2021-04-08 23:54:10 +02:00