Timing: Set background color of concise

0 votes
asked Feb 15 in Question / help by nogi (120 points)

Good evening,
I am looking for an option to set the background of a concise.

I would like, e.g., to achieve to change the default transparent background color of a concise, e.g., into red.

Is there such an option available?

Thanks a lot for your help.

Best

Norman

1 Answer

0 votes
answered Feb 27 by plantuml (295,000 points)

Not in the last official release. Sorry about that!

However, with last snapshot, you can have this.

Is this what you are looking for?

commented Feb 27 by The-Lu (64,760 points)
  • Is it plan to have the same things for analog, binary and clock signal? 
    wink
commented Feb 28 by plantuml (295,000 points)
Yes, it can be done.
However, I am not 100% satisfied by the syntax.

We should use some style for that, but since BackgroundColor is already used, I have no idea about how to define a second BackgroundColor.
Any idea anyone?
commented Feb 28 by The-Lu (64,760 points)

Hi,

For concise: We could change the current background to foreground but that will very not backward compatible...

And manage the BackgroundColor for all player, as the real BackgroundColor...

Here is a proposal:

@startuml
<style>
timingDiagram {
    LineThickness 2
    timeline {
    BackgroundColor pink
    }
    note {
      LineThickness 0.5
    }
  clock {
    LineColor darkgreen
    BackgroundColor palegreen
  }
  concise {
    FontSize 12
    LineColor darkgreen
    BackgroundColor pink
    ForegroundColor palegreen
  }
  robust {
    LineColor darkgreen
    BackgroundColor blue
  }
  binary {
    LineColor darkgreen
    BackgroundColor aliceblue
  }
  analog {
    LineColor darkgreen
    BackgroundColor aliceblue
  }
}
</style>

clock   "Clock_0"   as C0 with period 50
binary  "Binary"  as B
concise "Concise" as C
robust  "Robust"  as R
analog  "Analog"  as A

@0
C is Idle
R is Idle
A is 0

@100
B is high
C is Waiting
R is Processing
A is 3

@300
R is Waiting
A is 1
@enduml

If that can help, for a new not backward syntax...

Regards,
Th.

commented Feb 28 by The-Lu (64,760 points)

And:

@startuml

clock   "Clock_0" as C0 with period 50 #palegreen
binary  "Binary"  as B #aliceblue
concise "Concise" as C #pink
robust  "Robust"  as R #blue
analog  "Analog"  as A #aliceblue

@0
C is Idle
R is Idle
A is 0

@100
B is high
C is Waiting
R is Processing
A is 3

@300
R is Waiting
A is 1
@enduml
...