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

[GANTT] Implement arrow style color #438

Merged
merged 1 commit into from
Jan 8, 2021

Conversation

Nordes
Copy link

@Nordes Nordes commented Jan 8, 2021

Adding the arrow coloring as what we would expect. If the style exists or the default color is RED_DARK, then we try to get the style from the <style>...</style> else we use the style from the text in the puml.

Usage

<style>
@startgantt gantt
!$PRIMARY_LIGHT = "#33b2e2"
!$PRIMARY = "#009fdb"
!$DARK = "#5a5a5a"
!$SECONDARY_DARK = "#c2c2c2"

<style>
ganttDiagram {
	task {
		FontName "Cascadia Code PL"
		FontSize 11
		FontStyle bold
		FontColor $DARK
		BackGroundColor $PRIMARY_LIGHT-$PRIMARY
		LineColor $SECONDARY_DARK
	}

	arrow {
		LineColor #000000
	}
}
</style>
printscale weekly

Project starts the 1st of january 2021
2021-01-04 to 2021-01-10 are colored in #d2d2d2

[Automatic branch tag on release] as [s1] starts 2021-01-15 and lasts 1 week
then [Setup Automatic Alerts] as [s2] lasts 1 week

[End] happens 150 days after start
@endgantt

Result

image

fix #437.

@Nordes Nordes changed the title #437-Implement arrow style color [GANTT] Implement arrow style color Jan 8, 2021
@arnaudroques arnaudroques merged commit 4311e74 into plantuml:master Jan 8, 2021
@arnaudroques
Copy link
Contributor

Many thanks for your contribution !
We will also remove this HColorUtils.RED_DARK hard coded value, which comes from first versions, when Style was not implemented in Gantt.

Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[GANTT] Arrow with custom color - Feature request
2 participants