Skip to content

Rotational.Interfaces breaks color convention #4792

Description

@henrikt-ma

The connector icon colors in Modelica.Mechanics.Rotational.Interfaces break a design convention I thought was very broadly affected as a de-facto standard:

  • For a pair of connectors (for instance Translational.Interfaces.Flange_a and Translational.Interfaces.Flange_b), one of the icons has white as the dominant fill color, and the other icon has a non-white dominant fill color.
  • The line color of the dominant graphics item – which tools are expected to pick up as the color for connection Line annotations – matches the non-white dominant fill color.

In Modelica.Mechanics.Rotational.Interfaces, the problem is that the border line color is black, while the dominant non-white fill color is the slightly dark grey {135, 135, 135}. Since it has been like this for a very long time, our ecosystem is supposedly full of connection Line annotations with black line color, not matching the dominant connector icon color. One only has to look at the diagram Modelica.Mechanics.Rotational.Examples.First to see the issue.

Since it would be a hassle to update the color of all the Line annotations out there, I suggest that we fix the issue by instead aligning the fill color of Modelica.Mechanics.Rotational.Interfaces.Flange_a with the convention, making the whole connector icon pitch black instead of grey.

Here is a related discussion on the need for some related standardization, but this discussion is about specification, not design conventions:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions