英文:
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.
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
祝好,Jim
英文:
Just a note to say that the good people at https://groups.google.com/g/drawio provided an answer.
fillColor=strokeColor
Cheers, Jim
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。




评论