Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to define the branch colour in the branch definition (colour|color: like order: ) #5382

Open
Alevale opened this issue Mar 13, 2024 · 0 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request

Comments

@Alevale
Copy link

Alevale commented Mar 13, 2024

Proposal

I think a better way to showcase items is grouping them by colour, but in the current implementation it's really difficult to add colours and maintain a graph that has them.

Let's add a color or colour parameter to the branch that lets you specify how to show it.

Right now the only way to colour a branch is using the themeVariables and while that works, that doesn't escale very well nor seem maintainable.

This would also decouple the colour of the branches from the order they appear in, making the maintenance of a graph easier on the long term.

Example

gitGraph LR:
    commit
    commit

    branch S-1 order:0 color:"red"
    checkout S-1
    commit
    checkout main
    merge S-1

    branch S-2 order:1 color:"lightblue"
    checkout S-2
    commit tag:"16.1.0"
    checkout main
    merge S-2

    commit
    commit

Screenshots

No response

@Alevale Alevale added Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request labels Mar 13, 2024
@Alevale Alevale changed the title Allow to define the branch colour in the branch definition (colour|color: like order:) Allow to define the branch colour in the branch definition (colour|color: like order: ) Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant