Class GraphColors

java.lang.Object
io.github.jbastgen.stemma.app.graph.GraphColors

public final class GraphColors extends Object
The colours of the lanes of the commit graph (feature 17): a list of colours that replaces the colours of the theme, and rules that pin a colour to the branches whose name matches a pattern. The colours are checked for contrast like the accent colour.
  • Method Details

    • of

      public static GraphColors of(String colours, String ruleText)
      The colours of the settings: colours is a list of #rrggbb separated by commas or blanks (invalid ones are dropped).
    • assign

      public List<GraphColors.RowColors> assign(List<GraphLayout.Row> rows, List<List<String>> branches, Theme theme)
      The colours of all rows. A lane keeps its colour from the commit that carries a matching branch down along the first parents, so it does not change while scrolling; a lane that no rule pins has the colour of its position.
      Parameters:
      branches - for each row the names of the branches that point to its commit