color the names of groups/frames/packages etc on a case by

0 votes
asked Oct 8, 2022 in Wanted features by Bryan (340 points)

I know how to use skinparams to change colours on lots of thnigs, but I'd like to be able to use dark colours for backgrounds (which means I want white fonts) on a case by case basis. E.g. in the following sarah works coz the color is light and black fonts work, but fred does not because I haven't found out how to color the font of the name of the group (i.e. "fred") white. The syntax I have below is what I would use to do this with an actual activity, but I can't do it on the group ... (and i'd like to be able to do it on other diagram types and containers too).

group january {
   group #darkgreen:<color:white> fred {
     :does x;
   }
   group #azure sarah {
     :does y;
   } 
}

}

1 Answer

+1 vote
answered Oct 9, 2022 by The-Lu (65,440 points)

Hello B.,

You were almost there; Here is a possible solution:

group january {
   group #darkgreen <color:white>fred {
     :does x;
   }
   group #azure sarah {
     :does y;
   } 
}

And FYI, the form:

  • #[color|back:color];header:color;line:color;line.[bold|dashed|dotted];text:color

is only available for Class diagram or Deployment diagram, (not yet for Activity diagram).

Later you can use style.

Enjoy,
Regards,
Th.

commented Oct 10, 2022 by Bryan (340 points)
(perfect, thanks)
...