-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use the colored version of icons? #33
Comments
Hi Just an upvote here as i was planning to also use colored icons. I'm breaking my head on it as it is unclear. Thanks for creating the issue. |
I don't believe this is currently possible. According to the PlantUML documentation, sprites are monochrome. When invoking PlantUML to create the sprite, it'll be converted to greyscale automatically unless another color is specified. The end result will always be monochrome. This can be confirmed by creating a sprite using a full color icon:
The resulting sprite is greyscale:
|
Although the sprites themselves are monochrome, there are various ways in which color can be used:
Sadly, using a gradient on the container does not work well with the sprite's background (see example below). PlantUML Diagram Source@startuml
!$AzurePuml="https://raw.githubusercontent.com/plantuml-stdlib/Azure-PlantUML/release/2-1/dist"
!include $AzurePuml/AzureCommon.puml
!include $AzurePuml/Storage/AzureDiskStorage.puml
rectangle "default Sprite" as a {
rectangle "<$AzureDiskStorage>" as a1
}
rectangle "<color:...>" as b {
rectangle "<color:orange><$AzureDiskStorage>" as b1
rectangle "<color:blue><$AzureDiskStorage>" as b2
}
rectangle "<$sprite,color=...>" as c {
rectangle "<$AzureDiskStorage,color=orange>" as c1
rectangle "<$AzureDiskStorage,color=blue>" as c2
}
rectangle "Container Color" as d {
rectangle "<$AzureDiskStorage>" as d1 #orange
rectangle "<$AzureDiskStorage>" as d2 #blue
}
rectangle "Sprite Color and Container Color" as e {
rectangle "<$AzureDiskStorage,color=orange>" as e1 #blue
rectangle "<$AzureDiskStorage,color=blue>" as e2 #orange
}
rectangle "Container Gradient" as f {
rectangle "<$AzureDiskStorage,color=blue>" as f1 #orange|blue
rectangle "<$AzureDiskStorage,color=blue>" as f2 #orange|blue
rectangle "<$AzureDiskStorage,color=blue>" as f3 #orange|blue
rectangle "<$AzureDiskStorage,color=blue>" as f4 #orange|blue
}
a -[hidden]-> b
b -[hidden]> c
b -[hidden]-> d
d -[hidden]> e
d -[hidden]-> f
@enduml |
I take advantage of the last activities on this repo to ask for this question : how to use the colored version of icons ?
Is this now possible ?
This prevents me to use PlantUML as it full potential ...
Originally posted by @ChrisProlls in #20 (comment)
The text was updated successfully, but these errors were encountered: