Commit Graph

6 Commits

Author SHA1 Message Date
StarryWorm 05737cd449 Add "desired size" to Control
A `Control` can define `get_desired_size()` which allows it to grow based on its content without increasing its minimum size.
This new size will be respected by parent `Container`s.
Currently used by `Label` and `TabBar`.
2026-05-07 13:01:02 -04:00
StarryWorm bdca8b66e7 Add custom_maximum_size to Control
This property mirrors `custom_minimum_size` and enables the user to set a size the `Control`. Enabling `propagate_maximum_size` forces all children to respect this node's maximum_size.
Not all `Control` types handle this gracefully, which may result in content clipping.
2026-04-07 14:34:12 -04:00
StamLord fc7d6da3fa FoldableContainer: Override has_point to use title rect when folded 2026-01-01 11:54:24 +01:00
kobewi a5ece9368f Reduce repetitive code in FoldableContainer 2025-10-21 18:17:35 +02:00
kobewi 6856926b77 Rename FoldableContainer's text to title 2025-04-28 00:12:32 +02:00
kobewi 13741ff913 Add FoldableContainer
Co-authored-by: WhalesState <whalesstate@gmail.com>
2025-04-08 22:27:32 +02:00