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
[Wanted feature][Style] Allow full local style (for if
diamonds) on Activity diagram
#1623
Comments
I think there is an extra diamond { in your example that is the root of the issue. It looks like it is working fine this way. |
In fact that is the opposite:
I will fix that this evening... Regards, |
Hi @arnaudroques, and all, I just changed with the correct end bracket ( Regards, |
Well, I am confused here :-) |
Hi @arnaudroques, and all, Here are some more explanations: @startuml
' Local style for the diamonds of the first if;
<style>
activityDiagram {
diamond {
LineColor blue
BackgroundColor lightCyan
LineThickness 2
ArrowThickness 0.5
FontName Arial Narrow
FontColor red
FontSize 11
FontStyle regular
}
}
</style>
:On the diamonds of the first if;
floating note
According the above (local) style:
* The line color is not good
it should be <color:blue>blue
* The FontColor is not good
it should be <color:red>red
* The LineThickness is not good
* The FontStyle is not good
* ...
* <b>Only the BackgroundColor is good!
end note
if (decision) then (yes)
:C1;
else (no)
endif
' Local style for the diamonds of the second if;
<style>
activityDiagram {
diamond {
LineColor red
BackgroundColor pink
LineThickness 1
ArrowThickness 1
FontName Courier
FontColor blue
FontSize 10
FontStyle italic
}
}
</style>
:On the diamonds of the second if;
floating note
<b>All is good here... (like if the param will be global)
The BackgroundColor, the LineColor, the FontColor
end note
if (decision) then (yes)
:C2;
else (no)
endif
@enduml If that is more clear 😄 |
Yes, definitively more clear! We were lost with all those colors :-) This might be fixed in last snapshot. Many thanks for your tests! |
if
diamonds) on Activity diagram
Context
Observed on QA-18457.
Wanted feature
Example source
Output (tested on
1.2023.13beta3
) ❌Here is the result:
BackgroundColor
,Regards,
Th.
The text was updated successfully, but these errors were encountered: