Welcome to PlantUML Q&A, where you can ask questions and receive answers from other members of the community.

You can also submit new features request and vote for them.

Activity Beta: how to set default font color?

0 votes
Hello I tried to set up the global Font color with skinparam, but it seems it doesn't work, while the other settings like background, start, end colors work.

@startuml
skinparam backgroundColor white
skinparam activity {
  StartColor green
  EndColor green
  BackgroundColor yellow
  BorderColor blue
  FontColor white
  FontName Verdana
}

start

:First activity;

:Second activity;

#blue:<color:white>Manual color change</color>;

stop
@enduml

Do you know how could I set the default colors for the text without HTML tags for each text line?
 

Thanks a lot!

Lana
asked Dec 1, 2014 in bug by Mallvina (270 points)

1 Answer

0 votes
 
Best answer

Hello,

Thanks for the report : this has been fixed in V8010:

@startuml
skinparam ActivityFontColor red
skinparam ActivityBackgroundColor lightGreen
start
:foo;
@enduml

Regards,

answered Dec 1, 2014 by plantuml (125,190 points)
selected Dec 2, 2014 by Mallvina
Thanks a lot for a quick fix! Now it works fine.

But is there a way to apply the default font color to the IF diamonds, because I still get black color. And how could I set the same size for activity blobs and diamonds too?

@startuml
skinparam backgroundColor white
skinparam activity {
  FontColor green
  FontName Verdana
}

start

:step1;

if (Why this text is black?) then (YES)
stop
else (no)
:step2;
endif
stop
@enduml

Regards,
Lana
Ok, with version 8011, you can now have this:

@startuml
skinparam backgroundColor white
skinparam activity {
  FontColor green
  FontName Verdana
  FontSize 30
  DiamondFontColor red
  DiamondFontSize 40
  ArrowFontSize 7
}

start

:step1;

if (Why this text is black?) then (YES)
stop
else (no)
:step2;
endif
stop
@enduml
Hello, perfect! It works good. The last question about diamonds, there is possibility to set background and borders color as well? I tried this but didnt work:
skinparam activity {
  FontColor green
  FontName Verdana
  FontSize 30
  DiamondFontColor red
  DiamondBackgroundColor black
  DiamondBorderColor red
  DiamondFontSize 40
  ArrowFontSize 20
}

Thanks for your support.
Diamonds and activities are sharing the same setting for border and background.

So you can have:
 
skinparam activity {
  BackgroundColor lightBlue
  BorderColor darkBlue
  DiamondFontColor red
  DiamondFontSize 40
  ArrowFontSize 20
}

Do you really need separate settings for diamonds ?

Thanks
Support This Project Offer 250 Mo! Follow PlantUML on Twitter
...