Closed alfredporter closed 2 years ago
I guess that you are trying to fix something like the following example (which is not completely working):
@startuml
<style>
document {
header {
FontColor red
BackgroundColor lightGray
}
}
class {
FontColor blue
BackgroundColor yellow
header {
FontSize 20
FontColor green
BackgroundColor red
}
}
</style>
header some page header
class Foo {
dummy
}
@enduml
The "Foo" background should be red, and it is not. We're going to have a look on this.
You are right about Test A0005
. We have change it because the style part was not correct there..
Your pull request was very helpful, but we have implemented is slightly differently.
Tell us if does not solve your issue.
Thanks again for your contribution!
It does solve my issue, and I see the short-comings in my original commit. Thank you for the corrections, and for the great work on PlantUML!
Hello all,
object
?@startuml
<style>
document {
header {
FontColor red
BackgroundColor lightGray
}
}
object {
FontColor blue
BackgroundColor yellow
header {
FontSize 20
FontColor green
BackgroundColor red
}
}
</style>
header some page header
Object Foo {
dummy
}
@enduml
Regards.
Good idea! It's done for object.
Thanks for the suggestion
Good 👍... (But always more...) Then, next steps:
map
and header of map
?
See request here:
fields of class
or methods of class
?
See request here:
[Have a good night]
This issue appears to have regressed in v1.2022.6. The header background color no longer works. Testing using the following code (taken from above) I get:
@startuml
<style>
document {
header {
FontColor red
BackgroundColor lightGray
}
}
object {
FontColor blue
BackgroundColor yellow
header {
FontSize 20
FontColor green
BackgroundColor red
}
}
</style>
header some page header
Object Foo {
dummy
}
@enduml
Is this still an issue or have I done something wrong?
This is strange. It seems to work with online version.
Could you double check the version you are using? Thanks!
This is also strange as I think I was using the online version. If it's working online then this probably isn't broken. I will re-test later.
@arnaudroques Test A0005 is now failing because the
header.BackgroundColor
style is changing both the page header and the header of the two classes. Are my changes correct and this would become the new expected result or should the background color of the classes not be affected by the globalheader
style?