Commit Graph

15 Commits

Author SHA1 Message Date
Thaddeus Crews 42e4ec1c38 Merge pull request #118651 from StarryWorm/fix-tabbar-label-max-width
Fix `TabBar` and `Label` being unable to shrink when given a maximum size
2026-05-07 16:22:27 -05:00
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
Thaddeus Crews f5560ccbe2 Merge pull request #115637 from YeldhamDev/obey_your_parents
Make internal children of built-in nodes use their parent's material
2026-04-28 09:02:46 -05:00
Silc Lizard (Tokage) Renew bd6e63482e Remove SNAME from MethodInfo macro 2026-04-22 18:48:26 +09:00
Michael Alexsander 37da25dcb0 Make internal children of built-in nodes use their parent's material 2026-04-08 11:45:49 -03: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
Pāvels Nadtočajevs 1306221592 Move accessibility methods/enums from DisplayServer to the AccessibilityServer dedicated singleton. 2026-03-02 13:48:29 +02:00
Thaddeus Crews e380a41752 Style: Add class_db.h includes explicitly 2026-02-26 15:50:28 -06:00
mxtherfxcker 3be861c370 Fix GraphFrame titlebar incorrect sizing with custom stylebox 2026-01-09 10:56:29 +03:00
LuoZhihao 8ba4656ea3 Compile out editor-only logic within validate_property in games 2025-06-12 12:54:19 +08:00
Yufeng Ying 73d85f46c9 Remove unused headers in scene.
Co-authored-by: Thaddeus Crews <repiteo@outlook.com>

Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
2024-12-24 00:40:09 +08:00
Hendrik Brucker b871794591 Fix GraphFrame autoshrink with high DPI displays/custom UI scales 2024-07-04 19:08:06 +02:00
kobewi 5c28814b39 Add as_sortable_control() to unify Container checks 2024-05-08 11:45:52 +02:00
Marc Gilleron f3e6d23405 Fix crash when GraphFrame sb_to_draw_panel is not a StyleBoxFlat 2024-04-18 21:33:02 +01:00
Hendrik Brucker a81561cbd9 Add GraphFrame and integrate it in VisualShader 2024-04-04 15:11:00 +02:00