Commit Graph

394 Commits

Author SHA1 Message Date
Infiland 0d8ff6f137 Fix PopupMenu internal ScrollContainer inheriting global theme styles
The internal ScrollContainer created by PopupMenu picks up user-defined
global ScrollContainer theme styles (e.g., panel StyleBox), overriding
PopupMenu's intended appearance. This adds a StyleBoxEmpty override on
the internal ScrollContainer's panel to prevent theme bleed-through.

Fixes #118033.
2026-04-03 00:57:45 +02:00
Thaddeus Crews bd463cfe50 Merge pull request #118014 from warriormaster12/san-submenu-fix
Fix submenu positioning when `PopupMenu` is spawned near window border
2026-04-01 18:10:24 -05:00
Thaddeus Crews a7733e5e0a Merge pull request #117958 from warriormaster12/san-popupmenu-fuzzy-search
Implement fuzzy search for `PopupMenu` search bar
2026-04-01 18:10:22 -05:00
warriormaster12 a2af91a59b Implement fuzzy search for PopupMenu search bar 2026-03-30 22:00:35 +03:00
warriormaster12 2d94568f3e Fix submenu positioning when PopupMenu is spawned near window border 2026-03-30 21:48:56 +03:00
Thaddeus Crews 3eb96c8313 Merge pull request #117244 from bruvzg/ii
Do not show accessibility configuration warnings for non-focusable controls, account for name fallback.
2026-03-30 13:35:35 -05: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
Giganzo ec11acd2e8 Fix PopupMenu sizing with search bar 2026-03-15 15:14:17 +01:00
Pāvels Nadtočajevs cdb35db426 Do not show accessibility configuration warnings for non-focusable controls, account for name fallback. 2026-03-13 08:53:09 +02:00
Pāvels Nadtočajevs cdcb208eb9 [Viewport] Add option to inherit parents texture filter/repeat, use it for popups. 2026-03-11 15:06:47 +02:00
Thaddeus Crews 891069d1cd Merge pull request #114236 from warriormaster12/san-popupmenu-search-bar
Implement search bar for `PopupMenu`
2026-03-04 11:20:49 -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
warriormaster12 18e989c49e Implement search bar to PopupMenu 2026-03-03 22:35:06 +02:00
Rémi Verschelde 8c0f175c94 Decouple RenderingServer from as much of the codebase as possible
Notably decouples it from:
- AccessibilityServer
- DisplayServer
- Viewport
- Window
2026-03-03 12:48:07 +01:00
Rémi Verschelde a447ac95ec Move DisplayServer enums and typedefs to DisplayServerEnums
This will allow decoupling `display_server.h` from a number of headers in the
codebase which only require those enums and not all the DisplayServer API.
2026-03-03 12:44:02 +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
Thaddeus Crews e380a41752 Style: Add class_db.h includes explicitly 2026-02-26 15:50:28 -06:00
Lukas Tenbrink c5df0cb82b Don't right-align escaped newlines, e.g. for #define. This has previously led to long diffs in the commit history. 2026-02-04 19:31:28 +01:00
Rémi Verschelde 63c78e684b Merge pull request #114165 from KoBeWi/static
Use actual class names in resource type hints
2026-02-02 10:10:24 +01:00
Pāvels Nadtočajevs f36366705e [PopupMenu] Use parent GraphEdit scale for popups inside GraphElement instead of completely disabling it. 2026-01-30 10:05:46 +02:00
kobewi f7b9703cbd Use actual class names in resource type hints 2026-01-29 21:07:56 +01:00
Thaddeus Crews cdddc73745 Merge pull request #115379 from kitbdev/popupmenu-set-index
Add PopupMenu method `set_item_index`
2026-01-28 17:58:01 -06:00
kit 01839942fc Add PopupMenu method set_item_index 2026-01-26 12:17:56 -05:00
kit 7d3e84391b Fix error after setting native PopupMenu item ID 2026-01-25 19:27:57 -05:00
scgm0 1f3dcbd3f8 Fix PopupMenu size scaling again 2026-01-09 19:00:20 +08:00
Pāvels Nadtočajevs 64277e6101 Make PopupMenu shrinking configurable. 2025-12-30 08:33:41 +02:00
Pāvels Nadtočajevs 99be5302a6 Fix PopupMenu::_pre_popup crash outside the tree. 2025-12-19 09:32:54 +02:00
Pāvels Nadtočajevs 887e001c21 Unset submenu index when popup menu is hidden. 2025-12-09 11:48:09 +02:00
Rémi Verschelde 6b420d701a Merge pull request #110080 from bruvzg/popscwpc
[GraphEdit] Do not scale popup menus in the graph elements when zoomed.
2025-12-05 12:55:44 +01:00
Rémi Verschelde 03546373f4 Merge pull request #113320 from Koyper/fix_popup_menu_accelerator_incorrect_highlighting
[PopupMenu] Fix accelerator incorrect highlighting when mouse moves toward submenu
2025-12-03 09:49:50 +01:00
Koyper 7282a8564b fix popup menu accelerator incorrect highlighting 2025-12-01 08:43:50 -06:00
Koyper 3ae88632e2 Fix redundant attempts to connect popup hidden signal on submenu 2025-11-27 08:53:34 -06:00
Pāvels Nadtočajevs bdca5fa3a3 [GraphEdit] Do not scale popup menus in the graph elements when zoomed. 2025-11-27 13:40:14 +02:00
Pāvels Nadtočajevs 2721dbf5bc [PopupMenu] Update global menu shortcuts when shortcut is externally changed. 2025-11-25 20:32:42 +02:00
Thaddeus Crews 5afc01c46d Merge pull request #112604 from bruvzg/pop_center_rec
Update rect after `_pre_popup` in `popup_centered_*`.
2025-11-25 09:52:38 -06:00
Koyper 5b61baa60d Fix error spam and skip submenu hidden signals on native menus 2025-11-21 19:01:15 -06:00
Thaddeus Crews 1e1f044fd1 Merge pull request #110256 from Koyper/fix_popup_menu_item_wont_open
[PopupMenu] Fix submenu item not popping on mouse enter
2025-11-18 14:00:45 -06:00
Koyper 70e6ac5db3 Fix PopupMenu submenu item not popping on mouse enter 2025-11-18 08:34:49 -06:00
Michael Alexsander 41d93ca03c Fix blurry items on PopupMenu when v_separation has an odd value 2025-11-13 16:52:31 -03:00
Pāvels Nadtočajevs adf18ff44d Update rect after _pre_popup in popup_centered_*. 2025-11-10 11:24:37 +02:00
Haoyu Qiu 4694ee84f6 PopupMenu: Add theme option for merging icon and checkbox gutters 2025-11-09 13:09:14 +08:00
Haoyu Qiu 7a3093c373 PopupMenu: Fix minimum size for items with icons 2025-11-05 07:48:26 +08:00
Michael Alexsander c5fe5d4faf Fix PopupMenu losing item highlight when hovering submenus 2025-10-28 18:09:07 -03:00
scgm0 4a98162690 PopupMenu no longer ignores max_size 2025-10-27 18:10:58 +08:00
Thaddeus Crews 9e96c7d9b8 Merge pull request #110378 from timothyqiu/rtl-preview
Make text-related nodes translation domain aware
2025-10-16 12:48:05 -05:00
chocola-mint 19c47c5d99 Remove #include "scene/main/timer.h" from control.h 2025-10-05 14:41:06 +09:00
Haoyu Qiu 172c80df67 Make text-related nodes translation domain aware
- Makes `is_layout_rtl()` translation domain aware
- Makes various text-drawing controls translation domain aware
- Makes translation preview use the project's fallback locale when disabled
2025-09-22 09:39:14 +08:00
Thaddeus Crews 74e869c777 Merge pull request #109981 from bruvzg/clamp_menui_h
Clamp menus at the bottom of the screen.
2025-09-19 20:54:33 -05:00
Thaddeus Crews 8ccb7ba2ec Merge pull request #90832 from YeldhamDev/just_ignore_the_margin_bro
Fix incorrect submenu icon and accelerator text positions involving margins
2025-09-01 12:25:44 -05:00
Pāvels Nadtočajevs 02adbc47ba Do not set flags when PopupMenu::set_visible is called to hide popup. 2025-08-28 13:16:16 +03:00