[Style] Allow [all] style for mainframe

0 votes
asked Sep 28, 2022 in Wanted features by The-Lu (63,920 points)

Hello PlantUML team,

  • Could you allow style for mainframe?

Here are some examples only for sequence or deployment (but to be test for all diagram!):

Code
@startuml
<style>
mainframe {
  BackGroundColor aliceblue
  LineColor blue
  LineThickness 2.0
  FontColor blue
  FontSize 15
  FontStyle italic
  Margin 50
  Padding 100
}
frame {
  BackGroundColor palegreen
  LineColor green
  LineThickness 1.0
  FontColor red
  FontSize 11
  FontStyle bold
  Margin 50
  Padding 100
}
</style>
mainframe This is a mainframe

participant alpha
participant beta

alpha -> beta: a1
beta <- alpha: a2
group group
beta -> alpha: b1
alpha <- beta: b2
end
@enduml

@startuml
<style>
mainframe {
  BackGroundColor aliceblue
  LineColor blue
  LineThickness 2.0
  FontColor blue
  FontSize 15
  FontStyle italic
  Margin 50
  Padding 100
}
frame {
  BackGroundColor palegreen
  LineColor green
  LineThickness 1.0
  FontColor red
  FontSize 11
  FontStyle bold
  Margin 50
  Padding 100
}
</style>
mainframe This is a mainframe
frame frame
frame f1 {
frame f2
file file
}

frame --> file

@enduml
Output

See also this page for other overlapping issues (of border or legend) with mainframe:

Thanks for your works,
Regards,
Th.

related to an answer for: interaction frame

1 Answer

0 votes
answered Oct 6, 2022 by plantuml (294,960 points)
selected Oct 9, 2022 by The-Lu
 
Best answer

Thanks for the report.

This should be ok now.

Regards,

...