bonsai-rx / gui

Bonsai Library for composing user interfaces and real-time graphs
http://bonsai-rx.org/gui/
MIT License
0 stars 2 forks source link

Extend support for Font size costumization to Graph operators #24

Open bruno-f-cruz opened 7 months ago

bruno-f-cruz commented 7 months ago

UI elements (e.g. Button, Slider) can be composable using the TableLayoutPanel container operator. A great feature is the ability to override a lot of the appearance of all children via their Font property, or even via the same property of the container, that overrides all children.

Unfortunately, the equivalent pattern for Graph related operators is not available, since the property is not exposed at the level of the graph operator. This is unfortunate as one of the most annoying behaviors that result from the composition of graphs in containers is how small labels immediately get since they scale to the size of the cell in the container.

There are a few decisions that should be considered to allow this scaling: