Automatic fill colour but opposite to theme in diagrams.net aka draw.io.

huangapple go评论102阅读模式
英文:

Automatic fill colour but opposite to theme in diagrams.net aka draw.io

问题

  • 在diagrams.net中,如果要让形状具有以下填充颜色:

    • 如果以浅色主题查看图表,则填充颜色为黑色。
    • 如果以深色主题查看图表,则填充颜色为白色。

    形状的线条颜色可以通过打开“编辑样式”对话框并设置strokeColor=default键值对来实现。

    如果设置fillColor=default,则填充颜色将为:

    • 如果以浅色主题查看图表,则填充颜色为白色。
    • 如果以深色主题查看图表,则填充颜色为黑色。

    这与我希望的相反。

    上下文是我正在绘制UML活动图。起始节点应该是黑色圆圈(在浅色主题下)或白色圆圈(在深色主题下)。

    也许有另一个特殊值可以用于设置fillColor吗?我找不到关于可能值的文档。

    致意,Jim

英文:

In diagrams.net aka draw.io how can a shape have a fill colour that is

  • black if the diagram is viewed with light appearance.
  • white if the diagram is viewed with dark appearance.

A shape can have the line colour like that, by opening the Edit Style dialog and setting strokeColor=default in the key-value pairs.

Automatic fill colour but opposite to theme in diagrams.net aka draw.io.

If fillColor=default is set then the fill colour will be

  • white if the diagram is viewed with light appearance.
  • black if the diagram is viewed with dark appearance.

That's the opposite to what I want for some shapes.

Context is that I'm drawing UML activity diagrams. The start node should be a black circle, in light appearance, or a white circle, in dark appearance.

Maybe there's another special value to which fillColor can be set? I couldn't find documentation of the possible values.

Cheers, Jim

答案1

得分: 1

只是一条留言,说好人在https://groups.google.com/g/drawio提供了一个答案。

fillColor=strokeColor

Automatic fill colour but opposite to theme in diagrams.net aka draw.io.

祝好,Jim

英文:

Just a note to say that the good people at https://groups.google.com/g/drawio provided an answer.

fillColor=strokeColor

Automatic fill colour but opposite to theme in diagrams.net aka draw.io.

Cheers, Jim

huangapple
  • 本文由 发表于 2023年4月6日 22:23:36
  • 转载请务必保留本文链接:https://go.coder-hub.com/75950638.html
  • diagrams.net
  • draw.io
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定