Skip to content

Commit

Permalink
Graph color config (#48)
Browse files Browse the repository at this point in the history
* Implement parse_rgba_color

* Add graph.color config

* Fix ColorSet to build from GraphColorConfig

* Draw circle edge and background

* Fix graph::image test

* Fix edge calculation

* Fix to use single quote instead of double quote
  • Loading branch information
lusingander committed Sep 14, 2024
1 parent b1ddda4 commit 20a7a97
Show file tree
Hide file tree
Showing 8 changed files with 462 additions and 40 deletions.
209 changes: 209 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@ xdg = "2.5.2"

[dev-dependencies]
dircpy = "0.3.19"
rstest = "0.22.0"
tempfile = "3.12.0"
text-to-png = "0.2.0"
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,26 @@ date_local = true
# type: u16
width = 26

[graph.color]
# Colors should be specified in the format #RRGGBB or #RRGGBBAA.

# Array of colors used for the commit graph.
# type: array of strings
branches = [
"#E06C76",
"#98C379",
"#E5C07B",
"#61AFEF",
"#C678DD",
"#56B6C2",
]
# Color of the edge surrounding the commit circles in the graph.
# type: string
edge = "#00000000"
# Background color of the commit graph.
# type: string
background = "#00000000"

[keybind]
# See ./assets/default-keybind.toml for a specific example configuration.
# ...
Expand Down
Loading

0 comments on commit 20a7a97

Please sign in to comment.