Commit Graph

224 Commits

Author SHA1 Message Date
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 2c2ed8ddb5 [Editor] Generate and display documentation for the properties generated by PropertyListHelper. 2026-03-18 11:26:03 +02:00
kit 7eebfd19b7 Fix TabContainer set current tab not immediately updating visibility 2026-03-08 16:05:33 -04:00
Thaddeus Crews db25be3646 Merge pull request #116585 from jinyangcruise/fix_symbol_jump
Fix symbol jump history navigation issue.
2026-03-04 11:20:33 -06:00
Rémi Verschelde eabb9a63d4 Rename callable_method_pointer.h to callable_mp.h and include it explicitly
This allows removing it from `class_db.h`, significantly reducing the amount of files
that include it transitively.

Also includes some include cleanup in `control.h` and `rich_text_label.h` done while
ensure they don't depend on `callable_mp`.
2026-03-04 16:23:23 +01: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
jinyangcruise e4e31abeaa fix symbol jump history navigation issue. 2026-02-28 09:45:06 +08:00
Thaddeus Crews e380a41752 Style: Add class_db.h includes explicitly 2026-02-26 15:50:28 -06:00
kobewi 8b5d3c7bac Improve get_tab_control() in TabContainer 2026-02-24 13:14:54 +01:00
Pāvels Nadtočajevs b5b15f0f74 Fix TabContainer accessibility sub-element cleanup. 2026-02-22 12:34:12 +02:00
kobewi 44f9d7fa2e Change TabContainer's popup button into real Button 2026-02-08 18:13:45 +01:00
kobewi f7b9703cbd Use actual class names in resource type hints 2026-01-29 21:07:56 +01:00
Nolan Darilek d53ab67b83 GUI: Add accessibility region role for landmark navigation
Adds ROLE_REGION to allow controls to be marked as accessibility
regions/landmarks.

- Add `accessibility_region` property to Control
- Add ROLE_REGION to DisplayServer and AccessKit mapping
- Prevent Container/ScrollContainer from overriding region role
- Fix TabContainer to update accessibility when tabs change
- Mark editor docks, main screen, bottom panel, and scene tabs as regions
2026-01-19 08:12:33 -05:00
Michael Alexsander 4383cd06f1 Fix TabContainer's minimum size ignoring the popup button 2025-12-17 18:27:49 -03:00
kobewi 646ac8494b Allow to customize TabContainer tabs in editor 2025-11-22 00:28:59 +01:00
kobewi 682b0f7c54 Add switch on hover to TabBar 2025-10-22 00:34:57 +02:00
Michael Alexsander 8973c91293 Add icon color theme items for TabBar and TabContainer 2025-10-03 10:41:28 -03:00
Logan Detrick 88280a6b2a Fix TabBar minimum size with clip_tabs on 2025-07-13 16:40:22 -07:00
Michael Alexsander 454e4f817c Make build profile project detection also set build options 2025-06-03 11:11:33 -03:00
Thaddeus Crews e45cc68092 Merge pull request #106746 from HolonProduction/tab-container-material-fix
GUI: Use `TabContainer` material for internal `TabBar`
2025-06-02 18:51:58 -05:00
Logan Detrick 944295ab04 Fix TabContainer respecting tabbar_background margins 2025-05-31 13:49:38 -07:00
HolonProduction f6e26d01d5 GUI: Use TabContainer material for internal TabBar 2025-05-23 13:58:01 +02:00
Logan Detrick 5fbc8a61fc Fix TabBar hidden tabs handling 2025-05-13 18:11:00 -07:00
kit d16e8b7ca4 Fix and rename mouse filter recursive behavior
and focus mode recursive behavior.
2025-04-09 23:45:03 -04:00
Pāvels Nadtočajevs b106dfd4f9 Base accessibility API. 2025-04-08 20:14:28 +03:00
kobewi bc9d0c7835 Add templated version of ObjectDB::get_instance() 2025-03-27 15:43:23 +01:00
Thaddeus Crews 777c6637e9 Merge pull request #103214 from aaronjyoder/master
Add tab spacing modifier for tabs in TabBar and TabContainer
2025-03-24 10:00:54 -05:00
Rémi Verschelde 7ad0b9b16c Merge pull request #97495 from Delsin-Yu/control_recursive_disable_children
[GUI] Implement properties that can recursively disable child controls' `Focus Mode` & `Mouse Filter`
2025-03-19 12:26:03 +01:00
kobewi 92ab92114e Don't duplicate internal nodes 2025-03-07 16:08:53 +01:00
DE-YU_H14 a49ca33a7f Implement properties that recursively disables children's focus & mouse filter.
Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com>
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
2025-03-07 22:34:58 +08:00
Aaron J Yoder 117d5cbf96 Add tab spacing modifier for tabs in TabBar and TabContainer 2025-03-05 16:55:37 -05:00
A Thousand Ships 5dcab0e606 Prevent some internal nodes being duplicated in Controls 2025-02-10 13:27:08 +01:00
Janis Kirsteins 815e905972 Typo fix: rename SortableVisbilityMode 2025-01-19 00:33:39 +01:00
kit f2f34e9c50 Fix TabBar initialization issue and add tests 2024-09-20 18:49:46 -04:00
kit 3d6814e5d2 Fix TabContainer tab offset moving when not needed 2024-09-19 19:26:35 -04:00
Mounir Tohami 2ff61e0252 Fix TabContainer minimum size 2024-09-18 01:41:54 +00:00
A Thousand Ships d519715d94 [Scene] Add SceneStringNames::font(_size/_color) 2024-06-18 17:24:27 +02:00
kobewi 02e1e6d1ec Add visibilty mode to as_sortable_control() 2024-06-03 20:01:31 +02:00
kobewi 413c11357d Use Core/Scene stringnames consistently 2024-05-13 23:41:07 +02:00
Rémi Verschelde 098a4e945e Merge pull request #91188 from YeldhamDev/love_fixing_other_peoples_regressions
Fix `TabContainer` regressions related to switching tabs in certain cases
2024-05-02 12:46:39 +02:00
Michael Alexsander 1c32fa2f40 Fix TabContainer regressions related to switching tabs in certain cases 2024-04-26 03:07:21 -03:00
Haoyu Qiu 779426b2fa Allow setting icon max width for TabContainer 2024-04-26 08:27:27 +08:00
Rémi Verschelde d7abefd0a3 Merge pull request #91038 from timothyqiu/tab-container-toggle-icon-text
Fix TabContainer using wrong content rect after tab title update
2024-04-23 19:12:03 +02:00
Mansur Isaev b37ddfc606 Add tab tooltip text 2024-04-23 08:28:48 +04:00
Haoyu Qiu 91918e8cb7 Fix TabContainer not updating content rect after changing tab title 2024-04-23 09:48:59 +08:00
Haoyu Qiu fd14ba34d1 Fix TabContainer not redrawing after toggling tab icon 2024-04-20 21:08:46 +08:00
Michael Alexsander adea1a4b9b Fix TabContainer desync when tabs share names 2024-04-09 02:02:05 -03:00
A Thousand Ships 79ba22a73f Use Vector* component-wise min/max/clamp functions where applicable 2024-03-20 13:47:42 +01:00
kit 6e965f6c83 Allow tab deselection 2024-01-29 14:30:34 -05:00
kit f6a212837b TabContainer bottom position 2024-01-06 15:31:08 -05:00