Rémi Verschelde
3a88373a4c
Merge pull request #86553 from Koyper/fix_popup_panel_content_scaling
...
Fix non-embedded tooltips, popups and dialogs resizing to match Viewport content scale factors != 1.0
2024-04-18 12:24:11 +02:00
Koyper
0881c81c13
Fix non-embedded Windows resizing to match Viewport content scale factor
2024-04-17 09:30:16 -05:00
Michael Alexsander
978ffb39bf
Fix submenus erroneously closing on some occasions
2024-04-13 15:10:19 -03:00
bruvzg
3459aaa9d1
Fix NativeMenu layout direction on macOS, add extra check for Windows menu.
2024-03-15 09:48:54 +02:00
bruvzg
ac7583e449
[NativeMenu] Implement native popup menu support on Windows.
2024-03-13 10:51:38 +02:00
bruvzg
c65a667924
Move global_menu_*
methods to a separate NativeMenu
class.
2024-03-04 23:41:41 +02:00
Mounir Tohami
7884d63281
Fix PopupMenu doesn't respect it's ScrollContainer's margins
2024-02-23 15:51:47 +02:00
kobewi
aeec3c1309
Add methods to add submenus without using names
2024-02-22 15:13:53 +01:00
Rémi Verschelde
a246a4b523
Merge pull request #87967 from jsjtxietian/set_item_submenu
...
Fix `set_item_submenu` infinite recursion crash
2024-02-22 14:39:06 +01:00
jsjtxietian
3525972bc7
Fix set_item_submenu
infinite recursion crash
2024-02-22 12:37:50 +08:00
Rémi Verschelde
8f1915eb90
Revert "Fix selecting popup menu items on mouse release"
2024-02-20 10:05:41 +01:00
Rémi Verschelde
92951b0295
Merge pull request #86952 from ryevdokimov/fix-selecting-popup-menu-items-on-mouse-release
...
Fix selecting popup menu items on mouse release
2024-02-14 10:59:40 +01:00
kobewi
4f29ef82db
Add PropertyListHelper to PopupMenu
2024-02-11 12:09:55 +01:00
A Thousand Ships
15369fdb1d
Remove unnecessary this->
expressions
2024-01-29 09:59:18 +01:00
mrcdk
c9bdccf7f2
Expose PopupMenu get_item_multistate(), get_item_multistate_max() and set_item_multistate_max()
2024-01-22 20:07:19 +01:00
bruvzg
5a61fecd0e
[macOS] Do not unbind PopupMenu from global menu on clear
call.
2024-01-16 15:33:14 +02:00
Rémi Verschelde
c1da69d8f2
Merge pull request #86141 from Maran23/popup-hover-height-calc
...
Fix Popup hover and height calculation are off by some pixels
2024-01-15 13:23:42 +01:00
Robert Yevdokimov
06c2cda848
Fix selecting popup menu items on mouse release
2024-01-14 17:45:52 -05:00
Rémi Verschelde
365755fb34
Merge pull request #84946 from DarkMessiah/default-theme-checkbox-disabled-state
...
Use disabled icons for CheckBox in DefaultTheme
2024-01-10 12:03:12 +01:00
Rémi Verschelde
6c390b620d
Merge pull request #84445 from Rubonnek/add-const-references-clang-tidy
...
Add const references detected by clang-tidy
2024-01-04 14:25:33 +01:00
Rémi Verschelde
0c36bd791d
Merge pull request #82900 from bruvzg/macos_menu_global_shortcuts
...
[PopupMenu] Handle shortcuts with "global" flag directly.
2024-01-03 15:41:04 +01:00
bruvzg
15cdc52658
[PopupMenu] Handle physical_keycode and key_label of shortcuts.
2023-12-30 13:17:46 +02:00
Yuri Sizov
8a9aa30348
Merge pull request #81243 from Sauermann/fix-window-events
...
Fix internal events not being delivered to some Window types
2023-12-19 13:01:00 +01:00
Wilson E. Alvarez
a3cb1b096f
Add const references detected by clang-tidy
2023-12-16 13:36:44 -05:00
Marius Hanl
18fedd9c13
Fix Popup hover and height calculation are off by some pixels
...
This was caused by an incorrect calculation of the v_separation where it was not needed
2023-12-14 02:24:25 +01:00
bruvzg
0d44b50520
[macOS] Add default Window and Help menus, allow special menu customization.
2023-12-13 23:20:05 +02:00
Stanislav Labzyuk
ff59496632
Use disabled icons for CheckBox in DefaultTheme
2023-11-19 22:01:53 +01:00
Markus Sauermann
fa02d19fd1
Fix internal events not being delivered to some Window types
...
`AcceptDialog`, `Popup` and `PopupMenu` no longer subscribe to
"window_input" signal, because that is only sent if it is not an
internal signal.
Instead they receive events in `_input_from_window`. They ensure that
the event is also propagated to their super-function, just like
previously the signals would be treated.
2023-11-14 20:29:17 +01:00
Yuri Sizov
edcad2ea88
Allow auto-generated node names in PopupMenu::add_submenu_item
2023-11-09 17:12:41 +01:00
jsjtxietian
137b25cf53
Fix activate_item_by_event
infinite recursion crash
2023-11-01 10:29:59 +08:00
A Thousand Ships
f721b34b4e
Ensure input event is valid in PopupMenu::activate_item_by_event
2023-10-25 17:45:01 +02:00
Yuri Sizov
215e036600
Add bulk change guards to successive theme overrides in Editor and GUI
2023-10-19 18:14:14 +02:00
Yuri Sizov
ccb989569d
Fix incorrect offset of PopupMenu
separator icons
2023-10-17 20:38:35 +02:00
Rémi Verschelde
c1fed53943
Merge pull request #80271 from Ymanawat/optionmenu-scroll-test
...
Fix scrolling on keyboard/controller input
2023-10-09 15:30:57 +02:00
bruvzg
f93e254b58
[PopupMenu] Handle shortcuts with "global" flag directly.
2023-10-06 11:16:41 +03:00
bruvzg
d1aaa914f3
[macOS] Add about_to_open
and popup_hide
callback for the global menus, move part of logic to the PopupMenu to allow live menu modification.
2023-10-04 09:49:51 +03:00
kobewi
df24882f9a
Free submenu children when clearing PopupMenu
2023-09-25 16:45:41 +02:00
PrecisionRender
76fad10978
Expose PopupMenu
activate_item_by_event
method
2023-09-15 10:27:49 -05:00
Yuri Sizov
fe000277ea
Bind remaining theme properties to their respective classes
...
This adds binds for GraphEdit/GraphElement/GraphNode, which were
skipped before due to a rework. This also adds binds for Window,
which was skipped before due to a complicated code organization.
Also adds theme cache entries/direct cache access to a few places
that previously missed it. Some theme properties are now exposed
to other classes via friendships or public getters for convenience.
This removes all string-based theme access from scene/ classes.
2023-09-13 19:31:35 +02:00
Rémi Verschelde
013bbd1a1e
Merge pull request #81477 from timothyqiu/aligned
...
Fix submenu alignment with parent menu item
2023-09-11 15:38:54 +02:00
Yuri Sizov
2924bfd4d3
Register theme properties with ThemeDB
2023-09-11 13:45:23 +02:00
Haoyu Qiu
e5ad35a95f
Fix submenu alignment with parent menu item
2023-09-09 14:32:21 +08:00
Yogendra Manawat
a16fdb05ae
Fix scrolling popup_menu On keyboard/controller input
2023-08-30 23:31:22 +05:30
Tomasz Chabora
3dd881b4e4
Add option to allow echo events in menu shortcuts
2023-08-16 16:59:17 +02:00
kobewi
de4a3fa151
Unify and streamline connecting to Resource changes
2023-07-17 19:35:57 +02:00
bruvzg
4790da7900
[macOS] Implement optional native file selection dialog support for sandboxed apps.
2023-07-12 22:36:24 +03:00
Yuri Sizov
631d51c46c
Merge pull request #78476 from Sauermann/fix-embedded-safe-area
...
Embedded Popups store their safe_rect in their embedder
2023-07-12 15:09:20 +02:00
Florian Kothmeier
c33748d954
Fix invalid minimum size for translated messages in option button
2023-06-29 15:01:36 +02:00
Markus Sauermann
a12627765f
Embedded Popups store their safe_rect in their embedder
...
Storing it in the DisplayServer didn't make sense in this case,
because the embedded window is unknown to the DisplayServer.
2023-06-20 18:06:26 +02:00
Markus Sauermann
840e2b14f3
Remove unused variable PopupMenu::parent_rect
...
This private variable is not read anywhere.
Remove it and all places, where it is set.
2023-06-15 12:08:47 +02:00