From 4df76466542441bceb6ebbb21a0730c5ea97e620 Mon Sep 17 00:00:00 2001 From: Matt Cles Date: Fri, 28 Jan 2022 21:23:57 -0800 Subject: Add configurable colors for branch prefixes Branches can now be colored based on their prefix, if it matches a user defined prefix in the config file. If no user defined prefix matches, then it will fallback to the defaults: green for 'feature', yellow for 'bugfix', and red for 'hotfix'. All remaining branches will be set to the default text color. --- pkg/config/user_config.go | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/config') diff --git a/pkg/config/user_config.go b/pkg/config/user_config.go index a9977bdf6..9d7781358 100644 --- a/pkg/config/user_config.go +++ b/pkg/config/user_config.go @@ -25,6 +25,7 @@ type RefresherConfig struct { type GuiConfig struct { AuthorColors map[string]string `yaml:"authorColors"` + BranchColors map[string]string `yaml:"branchColors"` ScrollHeight int `yaml:"scrollHeight"` ScrollPastBottom bool `yaml:"scrollPastBottom"` MouseEvents bool `yaml:"mouseEvents"` -- cgit v1.2.3