Activity Beta: how to set default font color?

0 votes
asked Dec 1, 2014 in Bug by Mallvina (180 points)
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

1 Answer

0 votes
answered Dec 1, 2014 by plantuml (295,000 points)
selected Dec 2, 2014 by Mallvina
 
Best answer

Hello,

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

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

Regards,

commented Dec 2, 2014 by Mallvina (180 points)
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
commented Dec 3, 2014 by plantuml (295,000 points)
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
commented Dec 4, 2014 by Mallvina (180 points)
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.
commented Dec 8, 2014 by plantuml (295,000 points)
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
...