jesseduffield / jesseduffield/lazygit

BranchColor value on config behaves not consistant

Open
#2,000 4 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
82.4k
Forks
3k
Avg merge
2d 18h
Merged PRs (30d)
19

Description

**Describe the bug**
Adjusting the branch colors on the UI needs to take RGB values while some other places can take RGB values or named colors like 'blue'. A consistent behavior that allows both (color and RGB) would be nice.

**To Reproduce**
Steps to reproduce the behavior:
1. Open the config file
2. Edit the branch coloring settings (ui:branchColors:)
3. Put down a color name instead RGB like red or 'red' (both tested)
4. Open LazyGit and see that all matching branches are shown black colored (fallback)

**Expected behavior**
Branches that match the pattern should be colored correctly..

**Screenshots**
![image](https://user-images.githubusercontent.com/52546181/173339833-3b0172b0-ddf2-4f47-8cfc-125c420153e2.png)
See that names are black no matter which red/'red' i noted down.For main the RGB code works.

**Desktop (please complete the following information):**
- OS: Manjaro
- Lazygit Version 0.34 (latest - 13.6.2022)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.