ls1intum/Apollon

Toggle Stereotype Visibility

Closed this issue · 1 comments

Problem

In a Component diagram, stereotypes can't be removed from Components and Subsystems, which may present additional clutter. Same goes for Components and Nodes in a Deployment diagram.

Solution

A new button could be added to the edit popup of the mentioned UML elements. The picture below shows exactly where. This button could have the text/icon "<< >>" inside of it, to indicate it is linked to the stereotype. When the stereotype is visible, the button is active and has a darker background. Otherwise, the button is not active and the background is transparent. Upon clicking the button, visibility of the stereotype is changed.

stereotype-toggle-proposal

Sounds good to me 👍
Are there any other toggle buttons in Apollon somewhere, maybe you can copy the style from there. Otherwise I think you can start implementing it.