Skip to content

Commit

Permalink
sub-style based on group type
Browse files Browse the repository at this point in the history
  • Loading branch information
m-dhooge committed May 3, 2021
1 parent 8540a8b commit 0b19e14
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/net/sourceforge/plantuml/sequencediagram/Grouping.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,15 @@ public abstract class Grouping implements Event, WithStyle {
final private Style styleHeader;

public StyleSignature getDefaultStyleDefinition() {
return StyleSignature.of(SName.root, SName.element, SName.sequenceDiagram, SName.group);
StyleSignature sig = StyleSignature.of(SName.root, SName.element, SName.sequenceDiagram, SName.group);
sig = sig.add("group_" + title);
return sig;
}

private StyleSignature getHeaderStyleDefinition() {
return StyleSignature.of(SName.root, SName.element, SName.sequenceDiagram, SName.groupHeader);
StyleSignature sig = StyleSignature.of(SName.root, SName.element, SName.sequenceDiagram, SName.groupHeader);
sig = sig.add("group_" + title);
return sig;
}

public Style[] getUsedStyles() {
Expand Down

0 comments on commit 0b19e14

Please sign in to comment.