Skip to content
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

Abillity to give different fill colors #11

Closed
RavenNevermore opened this issue Jan 27, 2015 · 4 comments
Closed

Abillity to give different fill colors #11

RavenNevermore opened this issue Jan 27, 2015 · 4 comments

Comments

@RavenNevermore
Copy link

Hi,

First of all, thanks for an awesome tool.

I noticed, that (sadly) when using the #fill directive, one can only color the whole diagram in the same color.

It would be great, if I could switch up those directives, to color code parts of the diagram. Maybe by putting them inside the declared object (like yuml does) or by simply being able to switch them out.

So:

#fill:red
[A]
[B]

#fill:blue
[C]

[A]->[C]

Would create a diagram, where 'A' and 'B' are filled red, but 'C' is filled blue.

Thanks.

@skanaar
Copy link
Owner

skanaar commented Jan 27, 2015

Thanks 😊

nomnoml is trying to be a tool where you enter pure structure, and it handles all rendering aspects. Of course this rendering can be controlled - but intentionally with a crude level of control.
I have been mostly concerned with the layouting aspect of this crude control (it will probably never offer detailed control over the positioning of boxes and arrows).

But nothing is impossible - If this is a much requested feature I might reconsider.

@mrzmyr
Copy link

mrzmyr commented Sep 21, 2015

+1

@palra
Copy link

palra commented Dec 1, 2015

As discussed in #36, using directives only to restrained sections of the code would be great. Something that could be done is something like defining a scope for the directive.

{
  #fill:red
  [A]
  [B]
}
{
  #fill:blue
  [C]
}

[A]->[C]

In this case, A and B would be rendered in red, C in blue.

@skanaar
Copy link
Owner

skanaar commented Jun 18, 2016

This has been implemented as Custom Classifier Styles. 🎉
Should be a reusable and stringent way of adapting the diagrams to your needs.

#.box: fill=#8f8
#.blob: fill=pink visual=ellipse dashed bold italic
[<box> GreenBox]
[<blob> HideousBlob]

Happy nomling 🐳

@skanaar skanaar closed this as completed Jun 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants