Skip to content

[GANTT] Implement arrow style color - #438

Merged
arnaudroques merged 1 commit into
plantuml:masterfrom
Nordes:feature/437-Add_arrow_style
Jan 8, 2021
Merged

[GANTT] Implement arrow style color#438
arnaudroques merged 1 commit into
plantuml:masterfrom
Nordes:feature/437-Add_arrow_style

Conversation

@Nordes

@Nordes Nordes commented Jan 8, 2021

Copy link
Copy Markdown

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
Copy Markdown
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